]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
[#585] small removal of un needed code
authorScottDowne <sdowne@learn.senecac.on.ca>
Fri, 22 Jul 2011 15:34:14 +0000 (11:34 -0400)
committerScottDowne <sdowne@learn.senecac.on.ca>
Fri, 22 Jul 2011 15:34:14 +0000 (11:34 -0400)
popcorn.js

index f7a6b6d4d1ca9c16ab18969fe954a101c5840121..27bf38649d57fd9e44dac85ffcd49c1a56d51331 100644 (file)
 
     //  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 ) {
       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,