SDK Review Feedback: Fix ReturnClause and TinySocial 8 bug
diff --git a/asterix-app/src/main/resources/sdk/static/js/asterix-sdk-stable.js b/asterix-app/src/main/resources/sdk/static/js/asterix-sdk-stable.js
index 15d992c..207c393 100644
--- a/asterix-app/src/main/resources/sdk/static/js/asterix-sdk-stable.js
+++ b/asterix-app/src/main/resources/sdk/static/js/asterix-sdk-stable.js
@@ -30,6 +30,9 @@
dataType : "json",
success : function(data) {
success_fn(data);
+ },
+ error: function(r) {
+ //alert(JSON.stringify(r));
}
});
@@ -60,12 +63,6 @@
};
-// Pretty AExpressAliases
-AExpression.prototype.ReturnClause = function(expression) {
- return this.bind(new ReturnClause(expression));
-};
-
-
// FunctionExpression
// Parent: AsterixExpression
//
@@ -190,6 +187,10 @@
};
+FLWOGRExpression.prototype.ReturnClause = function(expression) {
+ return this.bind(new ReturnClause(expression));
+};
+
// AQLClause
//
// Base Clause ::= ForClause | LetClause | WhereClause | OrderbyClause | GroupClause | LimitClause | DistinctClause
@@ -219,12 +220,6 @@
};
-AQLClause.prototype.ReturnClause = function(expression) {
- return this.bind(new ReturnClause(expression));
-};
-
-
-
// ForClause
//
// Grammar:
@@ -485,7 +480,7 @@
var expressions = [];
var variableRefs = [];
var isDecor = false;
-
+
while (expc < arguments.length) {
if (arguments[expc] instanceof AExpression) {
@@ -533,18 +528,6 @@
GroupClause.prototype = Object.create(AQLClause.prototype);
GroupClause.prototype.constructor = GroupClause;
-// BooleanExpression
-//
-// TODO
-function BooleanExpression(expression) {
- this.value = expression;
- alert("Debugging Bool: " + arguments.length + " " + expression);
-}
-
-BooleanExpression.prototype.val = function() {
- return this.value;
-}
-
// SetStatement
//