flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [11/17] git commit: [flex-asjs] [refs/heads/develop] - get model directly
Date Mon, 06 Oct 2014 21:29:30 GMT
get model directly


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

Branch: refs/heads/develop
Commit: d3d8fa6169e552174e066454798ecee848b8894c
Parents: 309da69
Author: Alex Harui <aharui@apache.org>
Authored: Mon Oct 6 13:13:58 2014 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Mon Oct 6 13:13:58 2014 -0700

----------------------------------------------------------------------
 .../src/org/apache/flex/html/beads/ImageAndTextButtonView.as      | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d3d8fa61/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/beads/ImageAndTextButtonView.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/beads/ImageAndTextButtonView.as
b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/beads/ImageAndTextButtonView.as
index 0aded66..492f6f8 100644
--- a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/beads/ImageAndTextButtonView.as
+++ b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/beads/ImageAndTextButtonView.as
@@ -32,6 +32,7 @@ package org.apache.flex.html.beads
 	import org.apache.flex.core.IBead;
 	import org.apache.flex.core.IBeadView;
 	import org.apache.flex.core.IStrand;
+    import org.apache.flex.core.IStrandWithModel;
     import org.apache.flex.core.ITextModel;
 	import org.apache.flex.core.ValuesManager;
 	
@@ -86,7 +87,7 @@ package org.apache.flex.html.beads
 		override public function set strand(value:IStrand):void
 		{
 			super.strand = value;
-            textModel = value.getBeadByType(ITextModel) as ITextModel;
+            textModel = IStrandWithModel(value).model as ITextModel;
             textModel.addEventListener("textChange", textChangeHandler);
             textModel.addEventListener("htmlChange", htmlChangeHandler);
 			


Mime
View raw message