From: Daniel Brooks Date: Fri, 18 Feb 2011 22:03:46 +0000 (-0600) Subject: [#336] fix 'manifest is undefined' error for plugins that pass an object instead... X-Git-Tag: v0.4~43^2~6 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=4ec2a0e1bcbdfd3286b2e9550d81997ebe6a550a;p=popcorn-js.git [#336] fix 'manifest is undefined' error for plugins that pass an object instead of a function --- diff --git a/popcorn.js b/popcorn.js index 0ba06fe..310a9ba 100644 --- a/popcorn.js +++ b/popcorn.js @@ -655,7 +655,7 @@ // 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 ); }