Update to latest jsonld.js from Forge.
authorDavid I. Lehn <dlehn@digitalbazaar.com>
Mon, 25 Jul 2011 17:40:08 -0400
changeset 77 736ada9aaa55
parent 76 47a4cc7bf8b7
child 78 d2d545c77e3f
Update to latest jsonld.js from Forge.
playground/jsonld.js
--- a/playground/jsonld.js	Mon Jul 25 13:54:23 2011 -0400
+++ b/playground/jsonld.js	Mon Jul 25 17:40:08 2011 -0400
@@ -742,8 +742,8 @@
 
 /**
  * Compares two keys in an object. If the key exists in one object
- * and not the other, that object is less. If the key exists in both objects,
- * then the one with the lesser value is less.
+ * and not the other, the object with the key is less. If the key exists in
+ * both objects, then the one with the lesser value is less.
  * 
  * @param o1 the first object.
  * @param o2 the second object.
@@ -998,16 +998,6 @@
       {
          _flatten(parent, parentProperty, value[i], subjects);
       }
-      
-      // if value is a list of objects, sort them
-      if(value.length > 0 &&
-         (value[0].constructor === String ||
-         (value[0].constructor === Object &&
-         ('@literal' in value[0] || '@iri' in value[0]))))
-      {
-         // sort values
-         value.sort(_compareObjects);
-      }
    }
    else if(value.constructor === Object)
    {
@@ -2162,7 +2152,7 @@
       frames = frame;
       if(frames.length === 0)
       {
-         frames.push({'@embed': false});
+         frames.push({});
       }
    }
    else