fix backing variables so they don't collide with defineprop'd properties
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/5a26f7cd Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/5a26f7cd Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/5a26f7cd Branch: refs/heads/develop Commit: 5a26f7cd5b58a34a635642d1696413132cfca8dd Parents: 827c281 Author: Alex Harui <aha...@apache.org> Authored: Fri Apr 3 16:07:25 2015 -0700 Committer: Alex Harui <aha...@apache.org> Committed: Fri Apr 3 16:07:25 2015 -0700 ---------------------------------------------------------------------- .../src/org/apache/flex/net/HTTPService.js | 31 ++++++-------------- 1 file changed, 9 insertions(+), 22 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5a26f7cd/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 2daa8b6..1a04e5a 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/net/HTTPService.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/net/HTTPService.js @@ -86,6 +86,12 @@ org_apache_flex_net_HTTPService = function() { */ this.contentType_ = 'application/x-www-form-urlencoded'; + /** + * @private + * @type {?string} + */ + this.id_ = null; + //try { // (erikdebruin) 'desperate' attempt to bypass XDR security in IE < 10 // this.contentType_ = 'text/plain'; // this.element = new XDomainRequest(); @@ -248,12 +254,12 @@ Object.defineProperties(org_apache_flex_net_HTTPService.prototype, { 'id': { /** @this {org_apache_flex_net_HTTPService} */ get: function() { - return this.id; + return this.id_; }, /** @this {org_apache_flex_net_HTTPService} */ set: function(value) { - if (this.id !== value) { - this.id = value; + if (this.id_ !== value) { + this.id_ = value; this.dispatchEvent('idChanged'); } } @@ -269,18 +275,6 @@ Object.defineProperties(org_apache_flex_net_HTTPService.prototype, { get: function() { return null; } - }, - 'strand': { - /** @this {org_apache_flex_net_HTTPService} */ - set: 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]); - } - } } }); @@ -362,13 +356,6 @@ org_apache_flex_net_HTTPService.prototype.progressHandler = function() { /** - * @expose - * @type {?string} - */ -org_apache_flex_net_HTTPService.prototype.id = null; - - -/** * @param {Object} document The MXML object. * @param {string} id The id for the instance. */