From d6b8ab1c099f15ac678772182c2db46115895d56 Mon Sep 17 00:00:00 2001 From: rwldrn Date: Wed, 19 Jan 2011 14:10:06 -0500 Subject: [PATCH] [#271] Plugin Factory bug --- popcorn.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/popcorn.js b/popcorn.js index 7a45ce7..3b5abbc 100644 --- a/popcorn.js +++ b/popcorn.js @@ -626,7 +626,7 @@ // the definition into Popcorn.p var reserved = [ "start", "end"], - plugin = {type: name}, + plugin = {}, pluginFn, setup; @@ -716,7 +716,9 @@ 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 ) ) { -- 2.43.0