From 184ed24b87fb473265e1db53069f45cf87b4f33d Mon Sep 17 00:00:00 2001 From: ScottDowne Date: Fri, 22 Jul 2011 11:34:14 -0400 Subject: [PATCH] [#585] small removal of un needed code --- popcorn.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/popcorn.js b/popcorn.js index f7a6b6d..27bf386 100644 --- a/popcorn.js +++ b/popcorn.js @@ -968,9 +968,7 @@ // If `manifest` arg is undefined, check for manifest within the `definition` object // If no `definition.manifest`, an empty object is a sufficient fallback - if ( !manifest ) { - manifest = definition.manifest || {}; - } + Popcorn.manifest[ name ] = manifest = manifest || definition.manifest || {}; // apply safe, and empty default functions methods.forEach(function( method ) { @@ -1066,11 +1064,6 @@ return this; }; - // Augment the manifest object - if ( manifest || ( "manifest" in definition ) ) { - Popcorn.manifest[ name ] = manifest || definition.manifest; - } - // Assign new named definition plugin[ name ] = function( options ) { return pluginFn.call( this, isfn ? definition.call( this, options ) : definition, -- 2.43.0