Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #20 from deefour/plugins-init

Fixes getter methods created when plugins are initialized.
  • Loading branch information...
commit f7b74ddfd3b62632fda5ee32d50c6918949caf52 2 parents 537f38b + 0a805ee
Alex Gorbatchev alexgorbatchev authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/js/textext.core.js
4 src/js/textext.core.js
View
@@ -802,7 +802,9 @@
if(plugin)
{
self._plugins[name] = plugin = new plugin();
- self[name] = function() { return plugin; };
+ self[name] = (function(plugin) {
+ return function(){ return plugin; }
+ })(plugin);
initList.push(plugin);
$.extend(true, plugin, self.opts(OPT_EXT + '.*'), self.opts(OPT_EXT + '.' + name));
}
Please sign in to comment.
Something went wrong with that request. Please try again.