Repository: flex-asjs
Updated Branches:
  refs/heads/develop 28457a58f -> f497350a1


FLEX-35256 - Fix "text" property in InnerHTML which allows to use it in binding 
scenarios


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

Branch: refs/heads/develop
Commit: f497350a1c14f80fb632ccfbc0d7f1e284c0f011
Parents: 28457a5
Author: piotrz <[email protected]>
Authored: Mon Feb 13 19:04:54 2017 +0100
Committer: piotrz <[email protected]>
Committed: Mon Feb 13 19:04:54 2017 +0100

----------------------------------------------------------------------
 .../main/flex/org/apache/flex/html/beads/InnerHTML.as  | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f497350a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/InnerHTML.as
----------------------------------------------------------------------
diff --git 
a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/InnerHTML.as
 
b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/InnerHTML.as
index 1deb588..eff6f2c 100644
--- 
a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/InnerHTML.as
+++ 
b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/InnerHTML.as
@@ -64,7 +64,11 @@ package org.apache.flex.html.beads
 
                public function set text(value:String):void
                {
-            _text = value;
+                       if (_text != value)
+            {
+                _text = value;
+                               updateHost();
+            }
                }
                
         private var host:UIBase;
@@ -83,7 +87,12 @@ package org.apache.flex.html.beads
                {
                        _strand = value;
 
-            host = value as UIBase;
+            updateHost();
+               }
+
+               private function updateHost():void
+               {
+            host = _strand as UIBase;
 
             if(_text != null && _text != "" && host != null)
             {

Reply via email to