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/10/29 19:16:02 UTC

[07/23] git commit: [flex-asjs] [refs/heads/develop] - tolerate exceptions

tolerate exceptions


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

Branch: refs/heads/develop
Commit: b1115fe971b3efc03b7cbab0b331fd00406dc796
Parents: d0f3a9c
Author: Alex Harui <ah...@apache.org>
Authored: Tue Oct 28 09:42:02 2014 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Wed Oct 29 11:15:42 2014 -0700

----------------------------------------------------------------------
 .../org/apache/flex/binding/GenericBinding.as   | 20 ++++++++++++++++----
 1 file changed, 16 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/b1115fe9/frameworks/as/projects/FlexJSUI/src/org/apache/flex/binding/GenericBinding.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/binding/GenericBinding.as b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/binding/GenericBinding.as
index f9164ee..0c74bf9 100644
--- a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/binding/GenericBinding.as
+++ b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/binding/GenericBinding.as
@@ -120,8 +120,14 @@ package org.apache.flex.binding
 		public function set strand(value:IStrand):void
 		{
 			destination = value;
-            var val:Object = getValueFromSource();
-            applyValue(val);
+            try 
+            {
+                var val:Object = getValueFromSource();
+                applyValue(val);
+            }
+            catch (e:Error)
+            {
+            }
         }
         
         private function getValueFromSource():Object
@@ -204,8 +210,14 @@ package org.apache.flex.binding
          */
 		public function valueChanged(value:Object):void
 		{
-            var val:Object = getValueFromSource();
-            applyValue(val);
+            try 
+            {
+                var val:Object = getValueFromSource();
+                applyValue(val);
+            } 
+            catch (e:Error)
+            {
+            }
 		}
 	}
 }
\ No newline at end of file