flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [4/5] git commit: [flex-asjs] [refs/heads/develop] - sync up ViewDataBinding to fix error in examples
Date Thu, 07 Jul 2016 17:11:38 GMT
sync up ViewDataBinding to fix error in examples


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

Branch: refs/heads/develop
Commit: 95cc27ea37474f7ba3b78faf7a75404e5bc3a609
Parents: 21338bc
Author: Alex Harui <aharui@apache.org>
Authored: Thu Jul 7 10:10:45 2016 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Thu Jul 7 10:11:21 2016 -0700

----------------------------------------------------------------------
 .../src/main/flex/org/apache/flex/binding/ViewDataBinding.as    | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/95cc27ea/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 d311fcd..cad8beb 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
@@ -264,7 +264,10 @@ package org.apache.flex.binding
             var n:int = bindingData.length;
             var index:int = 0;
             var watcherData:Object;
-            while (index < n)
+            // FalconJX adds an extra null to the data so make sure
+            // we have enough data for a complete watcher otherwise
+            // say we are done
+            while (index < n - 2)
             {
                 var watcherIndex:int = bindingData[index++];
                 var type:int = bindingData[index++];


Mime
View raw message