From: ScottDowne Date: Fri, 22 Jul 2011 15:34:14 +0000 (-0400) Subject: [#585] small removal of un needed code X-Git-Tag: v0.8^2~22^2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=184ed24b87fb473265e1db53069f45cf87b4f33d;p=popcorn-js.git [#585] small removal of un needed code --- 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,