Update to latest jsonld.js.
authorDave Longley <dlongley@digitalbazaar.com>
Fri, 01 Mar 2013 11:22:11 -0500
changeset 1367 a1102c97ba42
parent 1366 2f15f9c563c8
child 1368 50e8aefb0a37
Update to latest jsonld.js.
playground/jsonld.js
--- a/playground/jsonld.js	Fri Mar 01 14:12:46 2013 +0100
+++ b/playground/jsonld.js	Fri Mar 01 11:22:11 2013 -0500
@@ -2456,11 +2456,10 @@
           '@context must be an absolute IRI or the empty string.',
           'jsonld.SyntaxError', {context: ctx});
       }
-      else {
-        base = jsonld.url.parse(base || '');
-        base.pathname = base.pathname || '';
-        rval['@base'] = base;
-      }
+
+      base = jsonld.url.parse(base || '');
+      base.pathname = base.pathname || '';
+      rval['@base'] = base;
       defined['@base'] = true;
     }