From: Dan Vanderkam Date: Sun, 16 Nov 2014 00:18:42 +0000 (-0500) Subject: code review changes X-Git-Tag: v1.1.0~23^2~2 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=835351fdafc13958f730726d7622b6baa10fd385;p=dygraphs.git code review changes --- diff --git a/dygraph.js b/dygraph.js index e704dde..c8a1ccf 100644 --- a/dygraph.js +++ b/dygraph.js @@ -536,9 +536,9 @@ Dygraph.prototype.__init__ = function(div, file, attrs) { this.plugins_ = []; var plugins = Dygraph.PLUGINS.concat(this.getOption('plugins')); for (var i = 0; i < plugins.length; i++) { - var Plugin = plugins[i]; - // the plugins option may contain either plugin classes or instances. + // Plugin instances contain an activate method. + var Plugin = plugins[i]; // either a constructor or an instance. var pluginInstance; if (typeof(Plugin.activate) !== 'undefined') { pluginInstance = Plugin;