flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erikdebr...@apache.org
Subject [13/17] git commit: [flex-asjs] [refs/heads/develop] - JSHint: fixed 'variable not defined' error.
Date Thu, 07 Nov 2013 13:58:32 GMT
JSHint: fixed 'variable not defined' error.

Signed-off-by: Erik de Bruin <erik@ixsoftware.nl>


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

Branch: refs/heads/develop
Commit: 9e1366b262c1ca7a615b9940a297abb9027be202
Parents: 4690596
Author: Erik de Bruin <erik@ixsoftware.nl>
Authored: Thu Nov 7 14:30:02 2013 +0100
Committer: Erik de Bruin <erik@ixsoftware.nl>
Committed: Thu Nov 7 14:30:02 2013 +0100

----------------------------------------------------------------------
 frameworks/js/FlexJS/src/org/apache/flex/core/UIBase.js | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9e1366b2/frameworks/js/FlexJS/src/org/apache/flex/core/UIBase.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/UIBase.js b/frameworks/js/FlexJS/src/org/apache/flex/core/UIBase.js
index 87f3c0e..514c13e 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/UIBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/UIBase.js
@@ -102,7 +102,7 @@ org.apache.flex.core.UIBase.prototype.addElementAt = function(c, index)
{
 org.apache.flex.core.UIBase.prototype.getElementIndex = function(c) {
   var children = this.internalChildren();
   var n = children.length;
-  for (i = 0; i < n; i++)
+  for (var i = 0; i < n; i++)
   {
     if (children[i] == c.element)
       return i;
@@ -217,11 +217,11 @@ org.apache.flex.core.UIBase.prototype.getBeadByType =
 org.apache.flex.core.UIBase.prototype.removeBead =
     function(value) {
   if (!this.beads_) return null;
-  var n = beads_.length;
+  var n = this.beads_.length;
   for (var i = 0; i < n; i++) {
-    var bead = beads_[i];
+    var bead = this.beads_[i];
     if (bead == value) {
-      beads_.splice(i, 1);
+      this.beads_.splice(i, 1);
       return bead;
     }
   }


Mime
View raw message