code: function() {
      var len = this.selectedFeatures.length;
  
      clearEnabledFeatures();
      for (var i = 0; i < len; i++) {
        setEnabledFeatures(this.selectedFeatures[i]);
        var feature = this.allFeatures[this.selectedFeatures[i]];
  
        if (feature.reporting) {
          this.featuresWithReporting.push(feature);
        }
        if (feature.update) {
          this.featuresWithUpdate.push(feature);
        }
      }
  
      if (this.featuresWithReporting.length > 0) {
        this.reportingEnabled = true;
      }
  
      if (this.featuresWithUpdate.length > 0) {
        this.updateEnabled = true;
      }
    }
docs: Determine which features use reporting and which are updated on each iteration
  of the main loop.
  @private