From 4ec2a0e1bcbdfd3286b2e9550d81997ebe6a550a Mon Sep 17 00:00:00 2001 From: Daniel Brooks Date: Fri, 18 Feb 2011 16:03:46 -0600 Subject: [PATCH] [#336] fix 'manifest is undefined' error for plugins that pass an object instead of a function --- popcorn.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); } -- 2.43.0