From 90c9d9efeab53c5871f107736c1c13ee78ad0921 Mon Sep 17 00:00:00 2001 From: Rashid Khan Date: Wed, 11 Dec 2013 13:26:44 -0700 Subject: [PATCH] move plot off scope object --- src/app/panels/histogram/module.js | 4 ++-- src/vendor/jquery/jquery.flot.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/panels/histogram/module.js b/src/app/panels/histogram/module.js index d476c95da85..7493933b573 100644 --- a/src/app/panels/histogram/module.js +++ b/src/app/panels/histogram/module.js @@ -527,7 +527,7 @@ function (angular, app, $, _, kbn, moment, timeSeries) { restrict: 'A', template: '
', link: function(scope, elem) { - var data; + var data, plot; scope.$on('refresh',function(){ scope.get_data(); @@ -699,7 +699,7 @@ function (angular, app, $, _, kbn, moment, timeSeries) { data[i].data = _d; } - scope.plot = $.plot(elem, data, options); + plot = $.plot(elem, data, options); } catch(e) { // Nothing to do here diff --git a/src/vendor/jquery/jquery.flot.js b/src/vendor/jquery/jquery.flot.js index fddbdc32ab7..5505c76d113 100644 --- a/src/vendor/jquery/jquery.flot.js +++ b/src/vendor/jquery/jquery.flot.js @@ -2438,9 +2438,9 @@ Licensed under the MIT license. radius = series.points.radius, symbol = series.points.symbol; - // If the user sets the line width to 0, we change it to a very + // If the user sets the line width to 0, we change it to a very // small value. A line width of 0 seems to force the default of 1. - // Doing the conditional here allows the shadow setting to still be + // Doing the conditional here allows the shadow setting to still be // optional even with a lineWidth of 0. if( lw == 0 )