ソースを参照

move plot off scope object

Rashid Khan 12 年 前
コミット
90c9d9efea
2 ファイル変更4 行追加4 行削除
  1. 2 2
      src/app/panels/histogram/module.js
  2. 2 2
      src/vendor/jquery/jquery.flot.js

+ 2 - 2
src/app/panels/histogram/module.js

@@ -527,7 +527,7 @@ function (angular, app, $, _, kbn, moment, timeSeries) {
       restrict: 'A',
       template: '<div></div>',
       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

+ 2 - 2
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 )