flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [27/31] git commit: [flex-asjs] [refs/heads/develop] - fix bead handling on HTTPService
Date Tue, 09 Dec 2014 05:17:14 GMT
fix bead handling on HTTPService


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

Branch: refs/heads/develop
Commit: 6cd888b7e38653ce15cde29958b24c586089e622
Parents: 7e97921
Author: Alex Harui <aharui@apache.org>
Authored: Mon Dec 8 20:42:54 2014 -0800
Committer: Alex Harui <aharui@apache.org>
Committed: Mon Dec 8 21:09:29 2014 -0800

----------------------------------------------------------------------
 .../src/org/apache/flex/net/HTTPService.js      | 30 ++++++++++++++++++++
 1 file changed, 30 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6cd888b7/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 7339bf6..0fa8400 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/net/HTTPService.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/net/HTTPService.js
@@ -64,6 +64,12 @@ org.apache.flex.net.HTTPService = function() {
 
   /**
    * @private
+   * @type {Array.<Object>}
+   */
+  this.beads_ = null;
+
+  /**
+   * @private
    * @type {number}
    */
   this.timeout_ = 0;
@@ -131,6 +137,15 @@ org.apache.flex.net.HTTPService.HTTP_METHOD_DELETE = 'DELETE';
 
 /**
  * @expose
+ * @param {Array.<Object>} value The array of beads.
+ */
+org.apache.flex.net.HTTPService.prototype.set_beads = function(value) {
+  this.beads_ = value;
+};
+
+
+/**
+ * @expose
  * @return {string} value The data.
  */
 org.apache.flex.net.HTTPService.prototype.get_data = function() {
@@ -414,3 +429,18 @@ org.apache.flex.net.HTTPService.prototype.get_MXMLProperties = function()
{
 org.apache.flex.net.HTTPService.prototype.setDocument = function(document, id) {
   this.document = document;
 };
+
+
+/**
+ * @expose
+ * @param {Object} value The strand.
+ */
+org.apache.flex.net.HTTPService.prototype.set_strand = function(value) {
+  if (this.strand_ !== value) {
+    this.strand_ = value;
+  }
+  var n = this.beads_ ? this.beads_.length : 0;
+  for (var i = 0; i < n; i++) {
+    this.addBead(this.beads_[i]);
+  }
+};


Mime
View raw message