flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [2/4] git commit: [flex-asjs] [refs/heads/develop] - dispatch change events
Date Fri, 28 Aug 2015 20:53:50 GMT
dispatch change events


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

Branch: refs/heads/develop
Commit: 8ad4565eebecf8a131aca02f5d348c0a7d2da31e
Parents: 83521ab
Author: Alex Harui <aharui@apache.org>
Authored: Fri Aug 28 13:52:35 2015 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Fri Aug 28 13:52:35 2015 -0700

----------------------------------------------------------------------
 frameworks/projects/HTML/js/src/org/apache/flex/html/Label.js | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/8ad4565e/frameworks/projects/HTML/js/src/org/apache/flex/html/Label.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/Label.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/Label.js
index 795b843..82a35c5 100644
--- a/frameworks/projects/HTML/js/src/org/apache/flex/html/Label.js
+++ b/frameworks/projects/HTML/js/src/org/apache/flex/html/Label.js
@@ -53,6 +53,7 @@ Object.defineProperties(org.apache.flex.html.Label.prototype, {
         /** @this {org.apache.flex.html.Label} */
         set: function(value) {
             this.element.innerHTML = value;
+            this.dispatchEvent('textChange');
         }
     },
     /** @export */
@@ -64,6 +65,7 @@ Object.defineProperties(org.apache.flex.html.Label.prototype, {
         /** @this {org.apache.flex.html.Label} */
         set: function(value) {
             this.element.innerHTML = value;
+            this.dispatchEvent('htmlChange');
         }
     }
 });


Mime
View raw message