]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
[#336] fix 'manifest is undefined' error for plugins that pass an object instead...
authorDaniel Brooks <db48x@db48x.net>
Fri, 18 Feb 2011 22:03:46 +0000 (16:03 -0600)
committerDaniel Brooks <db48x@db48x.net>
Fri, 18 Feb 2011 22:03:46 +0000 (16:03 -0600)
popcorn.js

index 0ba06feca17e406e1001d60658089b318d2e9b8b..310a9bacf4708014a8c0d46ff6f042fdcd70bab7 100644 (file)
 
         // Resolves 239, 241, 242
         if ( !options.target )
-          options.target = manifest.options.target || ("manifest" in setup && setup.manifest.options.target);
+          options.target = (manifest && manifest.options.target) || ("manifest" in setup && setup.manifest.options.target);
 
         setup._setup.call( this, options );
       }