Mild refactoring & adds debug statements
diff --git a/asterix-examples/src/main/resources/black-cherry/static/js/asterix-sdk-stable.js b/asterix-examples/src/main/resources/black-cherry/static/js/asterix-sdk-stable.js
index ac7e26c..3e5aa8d 100755
--- a/asterix-examples/src/main/resources/black-cherry/static/js/asterix-sdk-stable.js
+++ b/asterix-examples/src/main/resources/black-cherry/static/js/asterix-sdk-stable.js
@@ -85,6 +85,9 @@
}
var m = typeof mode ? mode : "synchronous";
+
+ // DEBUG
+ //alert(statements.join("\n"));
var query = "use dataverse " + this._properties["dataverse"] + ";\n" + statements.join("\n");
@@ -173,6 +176,9 @@
statements = [ statements ];
}
+ // DEBUG
+ // alert(statements.join("\n"));
+
this._api(
{
"statements" : "use dataverse " + this._properties["dataverse"] + ";\n" + statements.join("\n")
@@ -293,6 +299,8 @@
} else {
+ // NOTE: This section is in progress; currently API requires jQuery.
+
// First, we encode the parameters of the query to create a new url.
api_endpoint = endpoint_url + "?" + Object.keys(json).map(function(k) {
return encodeURIComponent(k) + '=' + encodeURIComponent(json[k])