You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by jm...@apache.org on 2017/05/21 16:37:07 UTC

[04/10] git commit: [flex-asjs] [refs/heads/develop] - values parameter hiding property

values parameter hiding property


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

Branch: refs/heads/develop
Commit: 8172e19ccf3393258cb28563355ac622ddc30b78
Parents: 1ec5412
Author: Justin Mclean <jm...@apache.org>
Authored: Sun May 21 07:29:27 2017 +1000
Committer: Justin Mclean <jm...@apache.org>
Committed: Sun May 21 07:29:27 2017 +1000

----------------------------------------------------------------------
 .../org/apache/flex/core/SimpleCSSValuesImpl.as | 26 ++++++++++----------
 1 file changed, 13 insertions(+), 13 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/8172e19c/frameworks/projects/Core/src/main/flex/org/apache/flex/core/SimpleCSSValuesImpl.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/src/main/flex/org/apache/flex/core/SimpleCSSValuesImpl.as b/frameworks/projects/Core/src/main/flex/org/apache/flex/core/SimpleCSSValuesImpl.as
index dd8b88a..45b3779 100644
--- a/frameworks/projects/Core/src/main/flex/org/apache/flex/core/SimpleCSSValuesImpl.as
+++ b/frameworks/projects/Core/src/main/flex/org/apache/flex/core/SimpleCSSValuesImpl.as
@@ -81,7 +81,7 @@ package org.apache.flex.core
 			if (!values)
 			{
 				values = {};
-	            this.mainClass = main;
+	            mainClass = main;
 	            var mainClassName:String = getQualifiedClassName(mainClass);
 				styleClassName = "_" + mainClassName + "_Styles";
 				c = ApplicationDomain.currentDomain.getDefinition(styleClassName) as Class;
@@ -110,12 +110,12 @@ package org.apache.flex.core
         public function init(main:Object):void
         {
             var cssData:Array = main.cssData;
-            var values:Object = this.values;
+            var newValues:Object = values;
 
-            this.mainClass = main;
+            mainClass = main;
 
-            if (values == null)
-                values = {};
+            if (newValues == null)
+                newValues = {};
             
             if (cssData) {
                 var n:int = cssData.length;
@@ -134,19 +134,19 @@ package org.apache.flex.core
                     for (var j:int = 0; j < numSel; j++)
                     {
                         var selName:String = cssData[i++];
-                        if (values[selName])
+                        if (newValues[selName])
                         {
-                            props = values[selName];
+                            props = newValues[selName];
                             propFn.prototype = props;
                         }
-                        values[selName] = new propFn();
+                        newValues[selName] = new propFn();
                     }
                     // skip the propFn
                     props = cssData[i++];
                 }
             }
             
-            this.values = values;            
+            values = newValues;
         }
         
         /**
@@ -635,12 +635,12 @@ package org.apache.flex.core
          *  @playerversion AIR 2.6
          *  @productversion FlexJS 0.0
          */
-        public function addRule(ruleName:String, values:Object):void
+        public function addRule(ruleName:String, ruleValues:Object):void
         {
             var asValues:Object = {};
-            for (var valueName:String in values)
+            for (var valueName:String in ruleValues)
             {
-                var v:* = values[valueName];
+                var v:* = ruleValues[valueName];
                 var c:int = valueName.indexOf("-");
                 while (c !== -1)
                 {
@@ -651,7 +651,7 @@ package org.apache.flex.core
                 }
                 asValues[valueName] = v;
             }
-            this.values[ruleName] = asValues;
+            values[ruleName] = asValues;
         }
         
         /**