Update to latest jsonld.js.
authorDave Longley <dlongley@digitalbazaar.com>
Mon, 30 Apr 2012 16:58:42 -0400
changeset 601 a7bb95568774
parent 600 dd52f1782d63
child 602 b66297ac37b5
Update to latest jsonld.js.
playground/jsonld.js
--- a/playground/jsonld.js	Mon Apr 30 16:30:55 2012 -0400
+++ b/playground/jsonld.js	Mon Apr 30 16:58:42 2012 -0400
@@ -1567,7 +1567,7 @@
     // handle element in @list
     if(p === RDF_FIRST) {
       // create list entry as needed
-      var listMap = graphs[name].listMap;
+      var listMap = graph.listMap;
       if(!(s in listMap)) {
         var entry = listMap[s] = {};
       }
@@ -1584,7 +1584,7 @@
       // set next in list
       if(o.interfaceName === 'BlankNode') {
         // create list entry as needed
-        var listMap = graphs[name].listMap;
+        var listMap = graph.listMap;
         if(!(s in listMap)) {
           var entry = listMap[s] = {};
         }
@@ -1611,7 +1611,7 @@
     }
 
     // add subject to graph as needed
-    var subjects = graphs[name].subjects;
+    var subjects = graph.subjects;
     if(!(s in subjects)) {
       value = subjects[s] = {'@id': s};
     }
@@ -1633,7 +1633,7 @@
       // a bnode might be the beginning of a list, so add it to the list map
       if(o.interfaceName === 'BlankNode') {
         var id = object['@id'];
-        var listMap = graphs[name].listMap;
+        var listMap = graph.listMap;
         if(!(id in listMap)) {
           var entry = listMap[id] = {};
         }