Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Uncaught exception when picking color from ColorItem

$
0
0
SmartClient Version (ISC_Core.js' header)
Version v9.1p_2014-06-04 (2014-06-04)

Browser
Windows Internet Explorer 8.0.6001.18702

Problem
We've been facing the following JavaScript error in IE8 when trying to pick a color from a ColorItem:

Quote:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0)
Timestamp: Thu, 3 Jul 2014 16:36:40 UTC


Message: Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus.
Line: 1012
Char: 671
Code: 0
URI: isomorphic/system/modules/ISC_Forms.js
This happens in a very specific use case, which means we could not easily reproduce it with a simple test. We hotfixed this issue adding a missing catch clause to a try...finally statement inside the _makeNotifyFunction method of ISC_Core.js, which was resulting in the uncaught exception:

Code:

Index: isomorphic/system/modules-debug/ISC_Core.js
===================================================================
--- isomorphic/system/modules-debug/ISC_Core.js
+++ isomorphic/system/modules-debug/ISC_Core.js  (working copy)
@@ -6796,6 +6796,7 @@
                action._returnVal = returnVal;
                try {
                    action.apply(q.target, arguments);
+                } catch (e) {
                } finally {
                    action._observer = null;
                    action._observed = null;

Could you please confirm whether our approach is correct, and if it will be fixed in the next nightlies?

Thanks in advance.

Viewing all articles
Browse latest Browse all 4756

Trending Articles