flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erikdebr...@apache.org
Subject [8/9] git commit: [flex-asjs] [refs/heads/develop] - Update with Carlos' latest
Date Sat, 04 May 2013 18:19:50 GMT
Update with Carlos' latest

Signed-off-by: Erik de Bruin <erik@ixsoftware.nl>


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

Branch: refs/heads/develop
Commit: cc97bbe4bce67a4cdcc6a34acb05aa58a7c4b8e6
Parents: f3ce06e
Author: Erik de Bruin <erik@ixsoftware.nl>
Authored: Sat May 4 07:51:57 2013 +0200
Committer: Erik de Bruin <erik@ixsoftware.nl>
Committed: Sat May 4 07:51:57 2013 +0200

----------------------------------------------------------------------
 .../src/org/apache/flex/binding/BindingBase.js     |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/cc97bbe4/frameworks/js/FlexJS/src/org/apache/flex/binding/BindingBase.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/binding/BindingBase.js b/frameworks/js/FlexJS/src/org/apache/flex/binding/BindingBase.js
index 08032a6..ab86b93 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/binding/BindingBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/binding/BindingBase.js
@@ -63,7 +63,12 @@ org.apache.flex.binding.BindingBase.prototype.sourcePropertyName = '';
 org.apache.flex.binding.BindingBase.prototype.set_strand = function(value) {
   this.destination = value;
 
-  this.source = this.document_[this.sourceID];
+  try {
+      this.source = this.document_['get_' + this.sourceID]();
+  } 
+  catch(e) {
+      this.source = this.document_[this.sourceID];
+  }
 };
 
 


Mime
View raw message