You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2014/12/09 06:17:11 UTC
[24/31] git commit: [flex-asjs] [refs/heads/develop] - fix more
binding scenarios
fix more binding scenarios
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/a5007606
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/a5007606
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/a5007606
Branch: refs/heads/develop
Commit: a5007606f8ed0b4111d7e171633f6017e3dde4c8
Parents: b9140b3
Author: Alex Harui <ah...@apache.org>
Authored: Mon Dec 8 17:39:42 2014 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Mon Dec 8 21:09:28 2014 -0800
----------------------------------------------------------------------
.../js/FlexJS/src/org/apache/flex/core/ViewBaseDataBinding.js | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a5007606/frameworks/js/FlexJS/src/org/apache/flex/core/ViewBaseDataBinding.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/ViewBaseDataBinding.js b/frameworks/js/FlexJS/src/org/apache/flex/core/ViewBaseDataBinding.js
index 52bc5b8..e9c2be9 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/ViewBaseDataBinding.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/ViewBaseDataBinding.js
@@ -19,6 +19,7 @@ goog.require('org.apache.flex.binding.GenericBinding');
goog.require('org.apache.flex.binding.PropertyWatcher');
goog.require('org.apache.flex.binding.SimpleBinding');
goog.require('org.apache.flex.events.Event');
+goog.require('org.apache.flex.events.ValueChangeEvent');
@@ -134,7 +135,7 @@ org.apache.flex.core.ViewBaseDataBinding.prototype.initCompleteHandler =
this.deferredBindings[prop] =
sb;
this.strand_.addEventListener('valueChange',
- this.deferredBindingsHandler);
+ goog.bind(this.deferredBindingsHandler, this));
}
}
else if (fieldWatcher.eventNames == null)
@@ -341,7 +342,7 @@ org.apache.flex.core.ViewBaseDataBinding.prototype.decodeWatcher =
/**
* @protected
- * @param {Object} event The event.
+ * @param {org.apache.flex.events.ValueChangeEvent} event The event.
*/
org.apache.flex.core.ViewBaseDataBinding.prototype.deferredBindingsHandler =
function(event) {
@@ -349,6 +350,7 @@ org.apache.flex.core.ViewBaseDataBinding.prototype.deferredBindingsHandler =
var destination;
for (p in this.deferredBindings)
{
+ if (p != event.propertyName) continue;
if (typeof(this.strand_['get_' + p]) == 'function')
{
destination = this.strand_['get_' + p]();