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/02 23:30:14 UTC
git commit: [flex-asjs] [refs/heads/develop] - fix undefined getter
(falback to property)
Updated Branches:
refs/heads/develop 2b7ee0a61 -> 91f330b3a
fix undefined getter (falback to property)
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/91f330b3
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/91f330b3
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/91f330b3
Branch: refs/heads/develop
Commit: 91f330b3a0cf8abb4f740c91398452a29719e882
Parents: 2b7ee0a
Author: Carlos Rovira <ca...@apache.org>
Authored: Thu May 2 23:30:01 2013 +0200
Committer: Carlos Rovira <ca...@apache.org>
Committed: Thu May 2 23:30:01 2013 +0200
----------------------------------------------------------------------
.../src/org/apache/flex/binding/SimpleBinding.js | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/91f330b3/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 88ef987..5716599 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,14 @@ 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['get_' + this.sourceID]();
+ if(this.document['get_' + this.sourceID] != undefined)
+ {
+ this.source = this.document['get_' + this.sourceID]();
+ }
+ else
+ {
+ this.source = this.document[this.sourceID];
+ }
this.source.addEventListener(
this.eventName, org.apache.flex.FlexGlobal.createProxy(
this, this.changeHandler