]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
[#271] Plugin Factory bug
authorrwldrn <waldron.rick@gmail.com>
Wed, 19 Jan 2011 19:10:06 +0000 (14:10 -0500)
committerAnna Sobiepanek <annaopensource@gmail.com>
Thu, 20 Jan 2011 01:40:11 +0000 (20:40 -0500)
popcorn.js

index 7a45ce776ba0770fb15db58a6ed79e390dfb5663..3b5abbc12a723cc052c6c9c730f4606a4fcb9c26 100644 (file)
     //  the definition into Popcorn.p 
     
     var reserved = [ "start", "end"], 
-        plugin = {type: name},
+        plugin = {},
         pluginFn, 
         setup;
     
     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 ) ) {