Update to latest jsonld.js.
authorDave Longley <dlongley@digitalbazaar.com>
Fri, 25 Jan 2013 10:40:35 -0500
changeset 1157 6f8aeaf2b8ab
parent 1156 2d5acc587a2b
child 1158 141ae6f536c4
Update to latest jsonld.js.
playground/jsonld.js
--- a/playground/jsonld.js	Thu Jan 24 17:16:12 2013 -0500
+++ b/playground/jsonld.js	Fri Jan 25 10:40:35 2013 -0500
@@ -4647,18 +4647,18 @@
  * @param v the value to check.
  */
 function _validateTypeValue(v) {
-  // must be a string, subject reference, or empty object
-  if(_isString(v) || _isSubjectReference(v) || _isEmptyObject(v)) {
+  // can be a string or an empty object
+  if(_isString(v) || _isEmptyObject(v)) {
     return;
   }
 
   // must be an array
   var isValid = false;
   if(_isArray(v)) {
-    // must contain only strings or subject references
+    // must contain only strings
     isValid = true;
     for(var i in v) {
-      if(!(_isString(v[i]) || _isSubjectReference(v[i]))) {
+      if(!(_isString(v[i]))) {
         isValid = false;
         break;
       }
@@ -4667,9 +4667,8 @@
 
   if(!isValid) {
     throw new JsonLdError(
-      'Invalid JSON-LD syntax; "@type" value must a string, a subject ' +
-      'reference, an array of strings or subject references, or an ' +
-      'empty object.', 'jsonld.SyntaxError', {value: v});
+      'Invalid JSON-LD syntax; "@type" value must a string, an array of ' +
+      'strings, or an empty object.', 'jsonld.SyntaxError', {value: v});
   }
 }