From: rwldrn Date: Wed, 19 Jan 2011 19:10:06 +0000 (-0500) Subject: [#271] Plugin Factory bug X-Git-Tag: v0.3~25^2~1 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=d6b8ab1c099f15ac678772182c2db46115895d56;p=popcorn-js.git [#271] Plugin Factory bug --- diff --git a/popcorn.js b/popcorn.js index 7a45ce7..3b5abbc 100644 --- a/popcorn.js +++ b/popcorn.js @@ -626,7 +626,7 @@ // the definition into Popcorn.p var reserved = [ "start", "end"], - plugin = {type: name}, + plugin = {}, pluginFn, setup; @@ -716,7 +716,9 @@ Popcorn.extend( Popcorn.p, plugin ); // Push into the registry - Popcorn.registry.push(plugin); + Popcorn.registry.push( Popcorn.extend( plugin, { + type: name + }) ); if ( !!( "manifest" in setup ) ) {