From: Daniel Brooks Date: Sat, 19 Feb 2011 13:04:32 +0000 (-0600) Subject: [#336] pass options to definition function X-Git-Tag: v0.4~43^2~4 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=701e0a5b00824f02985f41555ee9401ffb1f72cb;p=popcorn-js.git [#336] pass options to definition function --- diff --git a/popcorn.js b/popcorn.js old mode 100755 new mode 100644 index 786c6b2..8379174 --- a/popcorn.js +++ b/popcorn.js @@ -751,7 +751,7 @@ } else if ( typeof definition === "function" ) { plugin[ name ] = function( options ) { - return pluginFn.call( this, definition.call( this ), options ); + return pluginFn.call( this, definition.call( this, options ), options ); }; }