You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ca...@apache.org on 2013/05/03 01:55:34 UTC
[05/13] git commit: [flex-asjs]
[refs/heads/feature/createjs-checkbox] - use getters otherwise it won't work
when minified
use getters otherwise it won't work when minified
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/af7677eb
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/af7677eb
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/af7677eb
Branch: refs/heads/feature/createjs-checkbox
Commit: af7677eb7aa7655fa2703e990002be943e051366
Parents: f861b2c
Author: Alex Harui <ah...@apache.org>
Authored: Wed May 1 12:24:31 2013 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Wed May 1 12:24:31 2013 -0700
----------------------------------------------------------------------
.../src/org/apache/flex/binding/ConstantBinding.js | 2 +-
.../src/org/apache/flex/binding/SimpleBinding.js | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/af7677eb/frameworks/js/FlexJS/src/org/apache/flex/binding/ConstantBinding.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/binding/ConstantBinding.js b/frameworks/js/FlexJS/src/org/apache/flex/binding/ConstantBinding.js
index 241337e..d5c8a60 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/binding/ConstantBinding.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/binding/ConstantBinding.js
@@ -58,7 +58,7 @@ org.apache.flex.binding.ConstantBinding.prototype.sourcePropertyName = '';
*/
org.apache.flex.binding.ConstantBinding.prototype.set_strand = function(value) {
this.destination = value;
- this.source = this.document[this.sourceID];
+ this.source = this.document['get_' + this.sourceID]();
this.destination['set_' + this.destinationPropertyName](
this.source['get_' + this.sourcePropertyName]()
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/af7677eb/frameworks/js/FlexJS/src/org/apache/flex/binding/SimpleBinding.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/binding/SimpleBinding.js b/frameworks/js/FlexJS/src/org/apache/flex/binding/SimpleBinding.js
index 822b1ac..88ef987 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/binding/SimpleBinding.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/binding/SimpleBinding.js
@@ -86,7 +86,7 @@ org.apache.flex.binding.SimpleBinding.prototype.changeHandler = function() {
*/
org.apache.flex.binding.SimpleBinding.prototype.set_strand = function(value) {
this.destination = value;
- this.source = this.document[this.sourceID];
+ this.source = this.document['get_' + this.sourceID]();
this.source.addEventListener(
this.eventName, org.apache.flex.FlexGlobal.createProxy(
this, this.changeHandler