Skip to content

Commit

Permalink
allow options in plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrsh committed Apr 21, 2017
1 parent 04b37da commit d2b1182
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions dist/moon.js
Original file line number Diff line number Diff line change
Expand Up @@ -2077,9 +2077,10 @@
/**
* Runs an external Plugin
* @param {Object} plugin
* @param {Object} opts
*/
Moon.use = function (plugin) {
plugin.init(Moon);
Moon.use = function (plugin, opts) {
plugin.init(Moon, opts);
};

/**
Expand Down
Loading

0 comments on commit d2b1182

Please sign in to comment.