You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2015/11/13 06:34:14 UTC

[3/3] git commit: [flex-falcon] [refs/heads/develop] - forgot we need a commit statement

forgot we need a commit statement


Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/6b74cd0e
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/6b74cd0e
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/6b74cd0e

Branch: refs/heads/develop
Commit: 6b74cd0ebd78c5827fe7d0da909840fff032b3df
Parents: 20bd41a
Author: Alex Harui <ah...@apache.org>
Authored: Thu Nov 12 21:30:13 2015 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Thu Nov 12 21:33:34 2015 -0800

----------------------------------------------------------------------
 .../internal/codegen/js/flexjs/TestFlexJSGlobalClasses.java      | 2 +-
 .../compiler/internal/codegen/js/flexjs/JSFlexJSEmitter.java     | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/6b74cd0e/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/js/flexjs/TestFlexJSGlobalClasses.java
----------------------------------------------------------------------
diff --git a/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/js/flexjs/TestFlexJSGlobalClasses.java b/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/js/flexjs/TestFlexJSGlobalClasses.java
index af0b8f7..cda026b 100644
--- a/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/js/flexjs/TestFlexJSGlobalClasses.java
+++ b/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/js/flexjs/TestFlexJSGlobalClasses.java
@@ -242,7 +242,7 @@ public class TestFlexJSGlobalClasses extends TestGoogGlobalClasses
         IASNode parentNode = node.getParent();
         node = (IVariableNode) parentNode.getChild(1);
         asBlockWalker.visitVariable(node);
-        assertOut("var /** @type {XMLList} */ b = a.descendants('grandchild').filter(function(node){node.attribute('attr2') == 'fish'})");
+        assertOut("var /** @type {XMLList} */ b = a.descendants('grandchild').filter(function(node){return (node.attribute('attr2') == 'fish')})");
     }
     
     @Ignore

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/6b74cd0e/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/flexjs/JSFlexJSEmitter.java
----------------------------------------------------------------------
diff --git a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/flexjs/JSFlexJSEmitter.java b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/flexjs/JSFlexJSEmitter.java
index feea0c7..0d32289 100644
--- a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/flexjs/JSFlexJSEmitter.java
+++ b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/flexjs/JSFlexJSEmitter.java
@@ -351,12 +351,12 @@ public class JSFlexJSEmitter extends JSGoogEmitter implements IJSFlexJSEmitter
     public void emitE4XFilter(IMemberAccessExpressionNode node)
     {
     	getWalker().walk(node.getLeftOperandNode());
-    	write(".filter(function(node){node.");
+    	write(".filter(function(node){return (node.");
     	String s = stringifyNode(node.getRightOperandNode());
     	if (s.startsWith("(") && s.endsWith(")"))
     		s = s.substring(1, s.length() - 1);
     	write(s);
-    	write("})");
+    	write(")})");
     }
 
     @Override