From 5bd29cf4e97eabd68ab5361222653f6c32b7b229 Mon Sep 17 00:00:00 2001 From: Dan Vanderkam Date: Tue, 10 Apr 2012 18:38:00 -0400 Subject: [PATCH] klaus comments on plugins --- dygraph.js | 2 +- plugins/base.js | 2 ++ plugins/install.js | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/dygraph.js b/dygraph.js index 9a05677..e1cdd4e 100644 --- a/dygraph.js +++ b/dygraph.js @@ -477,7 +477,7 @@ Dygraph.prototype.cascadeEvents_ = function(name, extra_props) { }, propagationStopped: false, stopPropagation: function() { - propagationStopped = true; + e.propagationStopped = true; } }; Dygraph.update(e, extra_props); diff --git a/plugins/base.js b/plugins/base.js index 5ae917d..518a620 100644 --- a/plugins/base.js +++ b/plugins/base.js @@ -1,2 +1,4 @@ // Namespace for plugins. Dygraph.Plugins = {}; + +// TODO(danvk): move this into the top-level directory. Only plugins here. diff --git a/plugins/install.js b/plugins/install.js index 14aaefa..a7d8e6a 100644 --- a/plugins/install.js +++ b/plugins/install.js @@ -1,3 +1,4 @@ +// TODO(danvk): move this into the top-level directory. Only plugins here. Dygraph.PLUGINS.push( Dygraph.Plugins.Legend ); -- 2.7.4