]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
fixed butter tests [#474]
authorAnna Sobiepanek <annaopensource@gmail.com>
Sat, 16 Apr 2011 00:56:26 +0000 (20:56 -0400)
committerAnna Sobiepanek <annaopensource@gmail.com>
Sat, 16 Apr 2011 00:56:26 +0000 (20:56 -0400)
popcorn.js

index 0372d8f56d16e0a58948a4e23db5b8f5361b9a7b..ae595d1414cad9fde5a878de01cac835702ee0b5 100644 (file)
     //  Extend Popcorn.p with new named definition
     Popcorn.extend( Popcorn.p, plugin );
 
+    //  Push into the registry
+    Popcorn.registry.push(
+      Popcorn.extend( plugin, {
+        type: name
+      })
+     );
+     
     //  Push into the registry
     var entry = {
       fn: plugin[ name ],
       parents: [],
       name: name
     };
-    Popcorn.registry.push( entry );
     Popcorn.registryByName[ name ] = entry;
 
     return plugin;