From 78f1535427f6b6bfb24e7e9ce11f5bf42e7f8acf Mon Sep 17 00:00:00 2001 From: Anna Sobiepanek Date: Wed, 20 Apr 2011 10:55:34 -0400 Subject: [PATCH] fixed as per PR comments [#474] --- popcorn.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/popcorn.js b/popcorn.js index ae595d1..24dbd0a 100644 --- a/popcorn.js +++ b/popcorn.js @@ -845,13 +845,6 @@ // 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 ], @@ -860,6 +853,11 @@ parents: [], name: name }; + Popcorn.registry.push( + Popcorn.extend( plugin, entry, { + type: name + }) + ); Popcorn.registryByName[ name ] = entry; return plugin; -- 2.43.0