Fixed bug in playground.js that caused jQuery .ajax() call to fail.
authorManu Sporny <msporny@digitalbazaar.com>
Fri, 28 Oct 2011 00:32:15 -0400
changeset 247 276f39cf4b17
parent 246 4eb2f135daae
child 248 88ecc6b3174f
Fixed bug in playground.js that caused jQuery .ajax() call to fail.
contexts/event
playground/playground.js
--- a/contexts/event	Thu Oct 27 23:59:30 2011 -0400
+++ b/contexts/event	Fri Oct 28 00:32:15 2011 -0400
@@ -29,7 +29,7 @@
       "@coerce":
       {
          "latitude": "xsd:decimal",
-         "longitude": "xsd:decimal",
+         "longitude": "xsd:decimal"
       }
    }
 }
--- a/playground/playground.js	Thu Oct 27 23:59:30 2011 -0400
+++ b/playground/playground.js	Fri Oct 28 00:32:15 2011 -0400
@@ -188,7 +188,7 @@
          // treat param as a URL
          $.ajax({
             url: url,
-            dataType: 'application/ld+json',
+            dataType: 'json',
             success: function(data, textStatus, jqXHR)
             {
                callback(data);