From 50ef906e432f74eea69bf06d8ad4d416362b87d0 Mon Sep 17 00:00:00 2001 From: Anna Sobiepanek Date: Fri, 15 Apr 2011 20:56:26 -0400 Subject: [PATCH] fixed butter tests [#474] --- popcorn.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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; -- 2.43.0