Update to latest jsonld.js.
authorDave Longley <dlongley@digitalbazaar.com>
Fri, 20 Apr 2012 17:29:43 -0400
changeset 553 39127a5c8af0
parent 552 27fc7112f91b
child 554 b080658ef650
Update to latest jsonld.js.
playground/jsonld.js
--- a/playground/jsonld.js	Fri Apr 20 17:19:38 2012 -0400
+++ b/playground/jsonld.js	Fri Apr 20 17:29:43 2012 -0400
@@ -387,6 +387,9 @@
   callback = arguments[callbackArg];
 
   // set default options
+  if(!('base' in options)) {
+    options.base = '';
+  }
   if(!('resolver' in options)) {
     options.resolver = jsonld.urlResolver;
   }
@@ -501,6 +504,9 @@
   var callback = arguments[callbackArg];
 
   // set default options
+  if(!('base' in options)) {
+    options.base = '';
+  }
   if(!('resolver' in options)) {
     options.resolver = jsonld.urlResolver;
   }