flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [2/2] git commit: [flex-asjs] [refs/heads/develop] - the old pattern was causing the 'this' pointer to be wrong in JS in the call to getValue. Not sure why
Date Tue, 25 Aug 2015 14:58:20 GMT
the old pattern was causing the 'this' pointer to be wrong in JS in the call to getValue. 
Not sure why


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

Branch: refs/heads/develop
Commit: 052af9d3c90ba075fcfe6d593a8e45440fe81d8c
Parents: 9e94963
Author: Alex Harui <aharui@apache.org>
Authored: Tue Aug 25 07:58:04 2015 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Tue Aug 25 07:58:04 2015 -0700

----------------------------------------------------------------------
 .../Mobile/asjs/src/org/apache/flex/mobile/View.as    | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/052af9d3/frameworks/projects/Mobile/asjs/src/org/apache/flex/mobile/View.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Mobile/asjs/src/org/apache/flex/mobile/View.as b/frameworks/projects/Mobile/asjs/src/org/apache/flex/mobile/View.as
index 456116f..bb25416 100644
--- a/frameworks/projects/Mobile/asjs/src/org/apache/flex/mobile/View.as
+++ b/frameworks/projects/Mobile/asjs/src/org/apache/flex/mobile/View.as
@@ -61,12 +61,24 @@ package org.apache.flex.mobile
 		}
 		
 		private var _controller:IBeadController;
+        
+        /**
+         *  Get the controller for the view.
+         * 
+         *  @flexjsignorecoercion Class
+         *  
+         *  @langversion 3.0
+         *  @playerversion Flash 10.2
+         *  @playerversion AIR 2.6
+         *  @productversion FlexJS 0.0
+         */
 		public function get controller():IBeadController
 		{
 			if (_controller == null) {
 				_controller = getBeadByType(IBeadController) as IBeadController;
 				if (_controller == null) {
-					_controller = new (ValuesManager.valuesImpl.getValue(this, "iBeadController")) as IBeadController;
+                    var c:Class = ValuesManager.valuesImpl.getValue(this, "iBeadController")
as Class;
+					_controller = new c() as IBeadController;
 					addBead(_controller);
 				}
 			}


Mime
View raw message