Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 71851200BBA for ; Fri, 21 Oct 2016 11:07:17 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 704D9160AE0; Fri, 21 Oct 2016 09:07:17 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 6DA1A160B02 for ; Fri, 21 Oct 2016 11:07:16 +0200 (CEST) Received: (qmail 6974 invoked by uid 500); 21 Oct 2016 09:07:15 -0000 Mailing-List: contact commits-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list commits@flex.apache.org Received: (qmail 6486 invoked by uid 99); 21 Oct 2016 09:07:15 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Oct 2016 09:07:15 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 0ECF8E946C; Fri, 21 Oct 2016 09:07:15 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: cdutz@apache.org To: commits@flex.apache.org Date: Fri, 21 Oct 2016 09:07:29 -0000 Message-Id: In-Reply-To: <907e938ae51142f9b3f71cf4dfe9c94f@git.apache.org> References: <907e938ae51142f9b3f71cf4dfe9c94f@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [16/49] git commit: [flex-asjs] [refs/heads/feature-autobuild/maven-archetypes] - get binding working again archived-at: Fri, 21 Oct 2016 09:07:17 -0000 get binding working again Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/33363618 Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/33363618 Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/33363618 Branch: refs/heads/feature-autobuild/maven-archetypes Commit: 33363618f1ba692e42fd55e826519835b1805438 Parents: a42e69e Author: Alex Harui Authored: Fri Oct 7 22:09:29 2016 -0700 Committer: Alex Harui Committed: Fri Oct 7 22:09:41 2016 -0700 ---------------------------------------------------------------------- .../apache/flex/binding/ApplicationDataBinding.as | 8 ++++---- .../org/apache/flex/binding/ContainerDataBinding.as | 8 ++++---- .../apache/flex/binding/MXMLBeadViewDataBinding.as | 8 ++++---- .../flex/org/apache/flex/binding/PropertyWatcher.as | 16 +++++++++++++--- .../flex/org/apache/flex/binding/ViewDataBinding.as | 4 ++-- 5 files changed, 27 insertions(+), 17 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/33363618/frameworks/projects/Binding/src/main/flex/org/apache/flex/binding/ApplicationDataBinding.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/Binding/src/main/flex/org/apache/flex/binding/ApplicationDataBinding.as b/frameworks/projects/Binding/src/main/flex/org/apache/flex/binding/ApplicationDataBinding.as index c8a501f..e4130c9 100644 --- a/frameworks/projects/Binding/src/main/flex/org/apache/flex/binding/ApplicationDataBinding.as +++ b/frameworks/projects/Binding/src/main/flex/org/apache/flex/binding/ApplicationDataBinding.as @@ -235,10 +235,10 @@ package org.apache.flex.binding { case "property": { - var pw:PropertyWatcher = new PropertyWatcher(this, - watcher.propertyName, - watcher.eventNames, - (typeof(gb.source) === "function") ? gb.source as Function : watcher.getterFunction); + var pw:PropertyWatcher = new PropertyWatcher(_strand, + watcher.propertyName, + watcher.eventNames, + (typeof(gb.source) === "function" && watcher.children == null) ? gb.source as Function : watcher.getterFunction); watcher.watcher = pw; if (parentWatcher) pw.parentChanged(parentWatcher.value); http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/33363618/frameworks/projects/Binding/src/main/flex/org/apache/flex/binding/ContainerDataBinding.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/Binding/src/main/flex/org/apache/flex/binding/ContainerDataBinding.as b/frameworks/projects/Binding/src/main/flex/org/apache/flex/binding/ContainerDataBinding.as index 5deb680..1a0fdfb 100644 --- a/frameworks/projects/Binding/src/main/flex/org/apache/flex/binding/ContainerDataBinding.as +++ b/frameworks/projects/Binding/src/main/flex/org/apache/flex/binding/ContainerDataBinding.as @@ -281,10 +281,10 @@ package org.apache.flex.binding { case "property": { - var pw:PropertyWatcher = new PropertyWatcher(this, - watcher.propertyName, - watcher.eventNames, - (typeof(gb.source) === "function") ? gb.source as Function : watcher.getterFunction); + var pw:PropertyWatcher = new PropertyWatcher(_strand, + watcher.propertyName, + watcher.eventNames, + (typeof(gb.source) === "function" && watcher.children == null) ? gb.source as Function : watcher.getterFunction); watcher.watcher = pw; if (parentWatcher) pw.parentChanged(parentWatcher.value); http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/33363618/frameworks/projects/Binding/src/main/flex/org/apache/flex/binding/MXMLBeadViewDataBinding.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/Binding/src/main/flex/org/apache/flex/binding/MXMLBeadViewDataBinding.as b/frameworks/projects/Binding/src/main/flex/org/apache/flex/binding/MXMLBeadViewDataBinding.as index 043e10f..0579ace 100644 --- a/frameworks/projects/Binding/src/main/flex/org/apache/flex/binding/MXMLBeadViewDataBinding.as +++ b/frameworks/projects/Binding/src/main/flex/org/apache/flex/binding/MXMLBeadViewDataBinding.as @@ -230,10 +230,10 @@ package org.apache.flex.binding { case "property": { - var pw:PropertyWatcher = new PropertyWatcher(this, - watcher.propertyName, - watcher.eventNames, - (typeof(gb.source) === "function") ? gb.source as Function : watcher.getterFunction); + var pw:PropertyWatcher = new PropertyWatcher(_strand, + watcher.propertyName, + watcher.eventNames, + (typeof(gb.source) === "function" && watcher.children == null) ? gb.source as Function : watcher.getterFunction); watcher.watcher = pw; if (parentWatcher) pw.parentChanged(parentWatcher.value); http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/33363618/frameworks/projects/Binding/src/main/flex/org/apache/flex/binding/PropertyWatcher.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/Binding/src/main/flex/org/apache/flex/binding/PropertyWatcher.as b/frameworks/projects/Binding/src/main/flex/org/apache/flex/binding/PropertyWatcher.as index 98015dc..1ea83ef 100644 --- a/frameworks/projects/Binding/src/main/flex/org/apache/flex/binding/PropertyWatcher.as +++ b/frameworks/projects/Binding/src/main/flex/org/apache/flex/binding/PropertyWatcher.as @@ -48,10 +48,10 @@ package org.apache.flex.binding * @playerversion AIR 2.6 * @productversion FlexJS 0.0 */ - public function PropertyWatcher(source:Object, propertyName:String, eventNames:Object, + public function PropertyWatcher(document:Object, propertyName:String, eventNames:Object, getterFunction:Function) { - this.source = source; + this.document = document; this.propertyName = propertyName; this.getterFunction = getterFunction; this.eventNames = eventNames; @@ -71,6 +71,16 @@ package org.apache.flex.binding protected var dispatcher:IEventDispatcher; /** + * The document we belong to. + * + * @langversion 3.0 + * @playerversion Flash 10.2 + * @playerversion AIR 2.6 + * @productversion FlexJS 0.0 + */ + public var document:Object; + + /** * The object who's property we are watching. * * @langversion 3.0 @@ -226,7 +236,7 @@ package org.apache.flex.binding { if (getterFunction != null) { - value = getterFunction.apply(source, [ propertyName ]); + value = getterFunction.apply(document, [ propertyName ]); } else { http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/33363618/frameworks/projects/Binding/src/main/flex/org/apache/flex/binding/ViewDataBinding.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/Binding/src/main/flex/org/apache/flex/binding/ViewDataBinding.as b/frameworks/projects/Binding/src/main/flex/org/apache/flex/binding/ViewDataBinding.as index d9cdfd2..44c5489 100644 --- a/frameworks/projects/Binding/src/main/flex/org/apache/flex/binding/ViewDataBinding.as +++ b/frameworks/projects/Binding/src/main/flex/org/apache/flex/binding/ViewDataBinding.as @@ -266,10 +266,10 @@ package org.apache.flex.binding gb.isStatic = true; case "property": { - var pw:PropertyWatcher = new PropertyWatcher(this, + var pw:PropertyWatcher = new PropertyWatcher(_strand, watcher.propertyName, watcher.eventNames, - (typeof(gb.source) === "function") ? gb.source as Function : watcher.getterFunction); + (typeof(gb.source) === "function" && watcher.children == null) ? gb.source as Function : watcher.getterFunction); watcher.watcher = pw; if (parentWatcher) pw.parentChanged(parentWatcher.value);