Updated to latest jsonld.js.
authorDave Longley <dlongley@digitalbazaar.com>
Sun, 29 Apr 2012 23:29:29 -0400
changeset 586 09b046ad36dd
parent 585 505de0499a9e
child 587 dfc85a1f6587
Updated to latest jsonld.js.
playground/jsonld.js
--- a/playground/jsonld.js	Sun Apr 29 22:45:57 2012 -0400
+++ b/playground/jsonld.js	Sun Apr 29 23:29:29 2012 -0400
@@ -1553,16 +1553,16 @@
 
     // handle other element in @list
     if(p === RDF_REST) {
-      // create list entry as needed
-      var listMap = graphs[name].listMap;
-      if(!(s in listMap)) {
-        var entry = listMap[s] = {};
-      }
-      else {
-        var entry = listMap[s];
-      }
       // set next in list
       if(o.interfaceName === 'BlankNode') {
+        // create list entry as needed
+        var listMap = graphs[name].listMap;
+        if(!(s in listMap)) {
+          var entry = listMap[s] = {};
+        }
+        else {
+          var entry = listMap[s];
+        }
         entry.rest = o.nominalValue;
       }
       continue;