From: Anna Sobiepanek Date: Sat, 16 Apr 2011 00:56:26 +0000 (-0400) Subject: fixed butter tests [#474] X-Git-Tag: v0.5~14^2~1 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=50ef906e432f74eea69bf06d8ad4d416362b87d0;p=popcorn-js.git fixed butter tests [#474] --- diff --git a/popcorn.js b/popcorn.js index 0372d8f..ae595d1 100644 --- a/popcorn.js +++ b/popcorn.js @@ -845,6 +845,13 @@ // 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 ], @@ -853,7 +860,6 @@ parents: [], name: name }; - Popcorn.registry.push( entry ); Popcorn.registryByName[ name ] = entry; return plugin;