Wrap context in playground into @context key
authorMarkus Lanthaler <mark_lanthaler@gmx.net>
Mon, 20 Aug 2012 15:33:10 +0200
changeset 836 5c7dadceacc4
parent 835 25cadd92c4ff
child 837 fac887470979
Wrap context in playground into @context key

This closes #128.
playground/playground.js
--- a/playground/playground.js	Mon Aug 20 15:13:07 2012 +0200
+++ b/playground/playground.js	Mon Aug 20 15:33:10 2012 +0200
@@ -449,7 +449,7 @@
       }
       else if('@context' in playground.examples[name]) {
         // use context from markup as default
-        var ctx = playground.examples[name]['@context'];
+        var ctx = { '@context': playground.examples[name]['@context'] };
         data.context = JSON.stringify(ctx);
       }
     }