author | Dave Longley <dlongley@digitalbazaar.com> |
Thu, 20 Oct 2011 20:33:31 -0400 | |
changeset 227 | 7430f2765082 |
parent 226 | f9ef74ccab86 |
child 230 | 49d5f3db06c4 |
playground/jsonld.js |
--- a/playground/jsonld.js Thu Oct 20 19:43:53 2011 -0400 +++ b/playground/jsonld.js Thu Oct 20 20:33:31 2011 -0400 @@ -2519,7 +2519,8 @@ // 2. There is no existing embed OR it is an autoembed, AND // autoembed mode is off. var embedOn = - (frame['@embed'] === true || options.defaults.embedOn) && + (('@embed' in frame && frame['@embed']) || + (!('@embed' in frame) && options.defaults.embedOn)) && (embed === null || (embed.autoembed && !autoembed)); if(!embedOn)