flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [07/10] git commit: [flex-falcon] [refs/heads/develop] - instance properties need to dispatch change events
Date Tue, 09 Dec 2014 05:17:04 GMT
instance properties need to dispatch change events


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

Branch: refs/heads/develop
Commit: b99cd49e547516da470f98d392a9ebe76b18ef09
Parents: 70740be
Author: Alex Harui <aharui@apache.org>
Authored: Sun Dec 7 23:00:30 2014 -0800
Committer: Alex Harui <aharui@apache.org>
Committed: Mon Dec 8 17:25:02 2014 -0800

----------------------------------------------------------------------
 .../internal/codegen/mxml/flexjs/MXMLFlexJSEmitter.java         | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/b99cd49e/compiler.jx/src/org/apache/flex/compiler/internal/codegen/mxml/flexjs/MXMLFlexJSEmitter.java
----------------------------------------------------------------------
diff --git a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/mxml/flexjs/MXMLFlexJSEmitter.java
b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/mxml/flexjs/MXMLFlexJSEmitter.java
index 218621f..8ae9eaa 100644
--- a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/mxml/flexjs/MXMLFlexJSEmitter.java
+++ b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/mxml/flexjs/MXMLFlexJSEmitter.java
@@ -847,10 +847,13 @@ public class MXMLFlexJSEmitter extends MXMLEmitter implements
                 indentPush();
                 writeNewline("{");
                 indentPush();
-                writeNewline("if (value != this." + instance.id + ")");
+                writeNewline("if (value != this." + instance.id + ") {");
                 indentPop();
                 indentPop();
                 writeNewline("this." + instance.id + " = value;");
+                write("this.dispatchEvent(org.apache.flex.events.ValueChangeEvent.createUpdateEvent(this,
'");
+                write(instance.id + "', null, value));");
+                writeNewline("}");
                 writeNewline("};");
                 writeNewline();
                 writeNewline();


Mime
View raw message