You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by er...@apache.org on 2013/11/13 11:45:01 UTC
[6/7] git commit: [flex-asjs] [refs/heads/develop_strictest] - Fixed
type check.
Fixed type check.
Signed-off-by: Erik de Bruin <er...@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/f322c891
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/f322c891
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/f322c891
Branch: refs/heads/develop_strictest
Commit: f322c891d84c1f63d707196f47d4cb3bd039fc3a
Parents: 56e2d7c
Author: Erik de Bruin <er...@ixsoftware.nl>
Authored: Wed Nov 13 10:23:21 2013 +0100
Committer: Erik de Bruin <er...@ixsoftware.nl>
Committed: Wed Nov 13 10:23:21 2013 +0100
----------------------------------------------------------------------
frameworks/js/FlexJS/src/org/apache/flex/binding/WatcherBase.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f322c891/frameworks/js/FlexJS/src/org/apache/flex/binding/WatcherBase.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/binding/WatcherBase.js b/frameworks/js/FlexJS/src/org/apache/flex/binding/WatcherBase.js
index 9d3c41e..e55cf3c 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/binding/WatcherBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/binding/WatcherBase.js
@@ -172,7 +172,7 @@ org.apache.flex.binding.WatcherBase.prototype.wrapUpdate =
var n = staticClass.allowedErrorTypes.length;
for (var i = 0; i < n; i++)
{
- if (error.constructor == staticClass.allowedErrorTypes[i].type)
+ if (org.apache.flex.utils.Language.is(error, staticClass.allowedErrorTypes[i].type))
{
var handler = staticClass.allowedErrorTypes[i].handler;
if (handler != null)