You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2015/04/09 01:06:04 UTC

[45/47] git commit: [flex-asjs] [refs/heads/develop] - tweak variable names to avoid conflicts

tweak variable names to avoid conflicts


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

Branch: refs/heads/develop
Commit: 18355a5f1848ab45684927a334cdbf0e5ad248a1
Parents: 50e5ed8
Author: Alex Harui <ah...@apache.org>
Authored: Wed Apr 8 15:25:15 2015 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Wed Apr 8 15:25:15 2015 -0700

----------------------------------------------------------------------
 .../src/org/apache/flex/net/HTTPService.js       | 19 +++++++++++++++----
 1 file changed, 15 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/18355a5f/frameworks/js/FlexJS/src/org/apache/flex/net/HTTPService.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/net/HTTPService.js b/frameworks/js/FlexJS/src/org/apache/flex/net/HTTPService.js
index 4b3344a..ff1f743 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/net/HTTPService.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/net/HTTPService.js
@@ -66,6 +66,12 @@ org_apache_flex_net_HTTPService = function() {
    * @private
    * @type {Array.<Object>}
    */
+  this.mxmlBeads_ = null;
+
+  /**
+   * @private
+   * @type {Array.<Object>}
+   */
   this.beads_ = null;
 
   /**
@@ -143,10 +149,15 @@ org_apache_flex_net_HTTPService.HTTP_METHOD_DELETE = 'DELETE';
 
 Object.defineProperties(org_apache_flex_net_HTTPService.prototype, {
     /** @expose */
+    strand: {
+        /** @this {org_apache_flex_net_HTTPService} */
+        set: function(value) {}
+    },
+    /** @expose */
     beads: {
         /** @this {org_apache_flex_net_HTTPService} */
         set: function(value) {
-            this.beads_ = value;
+            this.mxmlBeads_ = value;
         }
     },
     /** @expose */
@@ -299,10 +310,10 @@ Object.defineProperties(org_apache_flex_net_HTTPService.prototype, {
 org_apache_flex_net_HTTPService.prototype.send = function() {
   var contentData, header, i, n, sawContentType, url;
 
-  if (this.strand == null && this.beads_) {
-    var m = this.beads_.length;
+  if (this.beads_ == null && this.mxmlBeads_) {
+    var m = this.mxmlBeads_.length;
     for (var j = 0; j < m; j++) {
-      this.addBead(this.beads_[j]);
+      this.addBead(this.mxmlBeads_[j]);
     }
   }