flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [44/47] git commit: [flex-asjs] [refs/heads/develop] - can't use strand as backing variable for the strand because some strands are also beads
Date Wed, 08 Apr 2015 23:06:03 GMT
can't use strand as backing variable for the strand because some strands are also beads


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

Branch: refs/heads/develop
Commit: 50e5ed84c5a0f2ac0788af2c17c2bc62b13f1114
Parents: bf7bac3
Author: Alex Harui <aharui@apache.org>
Authored: Wed Apr 8 15:24:36 2015 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Wed Apr 8 15:24:36 2015 -0700

----------------------------------------------------------------------
 .../org/apache/flex/core/HTMLElementWrapper.js  | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/50e5ed84/frameworks/js/FlexJS/src/org/apache/flex/core/HTMLElementWrapper.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/HTMLElementWrapper.js b/frameworks/js/FlexJS/src/org/apache/flex/core/HTMLElementWrapper.js
index 599aa61..85f6b71 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/HTMLElementWrapper.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/HTMLElementWrapper.js
@@ -52,10 +52,10 @@ org_apache_flex_core_HTMLElementWrapper.prototype.element = null;
 
 
 /**
- * @protected
+ * @private
  * @type {Array.<Object>}
  */
-org_apache_flex_core_HTMLElementWrapper.prototype.strand = null;
+org_apache_flex_core_HTMLElementWrapper.prototype.beads_ = null;
 
 
 /**
@@ -70,11 +70,11 @@ org_apache_flex_core_HTMLElementWrapper.prototype.internalDisplay = 'inline';
  * @param {Object} bead The new bead.
  */
 org_apache_flex_core_HTMLElementWrapper.prototype.addBead = function(bead) {
-  if (!this.strand) {
-    this.strand = [];
+  if (!this.beads_) {
+    this.beads_ = [];
   }
 
-  this.strand.push(bead);
+  this.beads_.push(bead);
 
   if (org_apache_flex_utils_Language.is(bead, org_apache_flex_core_IBeadModel)) {
     this.model = bead;
@@ -93,9 +93,9 @@ org_apache_flex_core_HTMLElementWrapper.prototype.getBeadByType =
     function(classOrInterface) {
   var bead, i, n;
 
-  n = this.strand.length;
+  n = this.beads_.length;
   for (i = 0; i < n; i++) {
-    bead = this.strand[i];
+    bead = this.beads_[i];
 
     if (org_apache_flex_utils_Language.is(bead, classOrInterface)) {
       return bead;
@@ -124,12 +124,12 @@ Object.defineProperties(org_apache_flex_core_HTMLElementWrapper.prototype,
{
 org_apache_flex_core_HTMLElementWrapper.prototype.removeBead = function(bead) {
   var i, n, value;
 
-  n = this.strand.length;
+  n = this.beads_.length;
   for (i = 0; i < n; i++) {
-    value = this.strand[i];
+    value = this.beads_[i];
 
     if (bead === value) {
-      this.strand.splice(i, 1);
+      this.beads_.splice(i, 1);
 
       return bead;
     }


Mime
View raw message