diff --git a/platform/features/plot/src/PlotOptionsController.js b/platform/features/plot/src/PlotOptionsController.js index 78706f9231..8be5579ebf 100644 --- a/platform/features/plot/src/PlotOptionsController.js +++ b/platform/features/plot/src/PlotOptionsController.js @@ -116,8 +116,6 @@ define( this.clearSeriesWatches(); - console.log("watches before: " + this.watches.length); - (self.$scope.children || []).forEach(function(child, index){ self.watches.push( self.$scope.$watchCollection( @@ -128,7 +126,6 @@ define( ) ); }); - console.log("watches after: " + self.watches.length); }; /** diff --git a/platform/features/plot/test/PlotOptionsControllerSpec.js b/platform/features/plot/test/PlotOptionsControllerSpec.js index 6b21771f79..cac42f72a7 100644 --- a/platform/features/plot/test/PlotOptionsControllerSpec.js +++ b/platform/features/plot/test/PlotOptionsControllerSpec.js @@ -94,6 +94,9 @@ define( ]); mockScope.domainObject = mockDomainObject; + function noop() {} + mockScope.$watchCollection.andReturn(noop); + plotOptionsController = new PlotOptionsController(mockScope); });