Author: maksimkaszynski
Date: 2007-07-25 11:07:03 -0400 (Wed, 25 Jul 2007)
New Revision: 312
Modified:
branches/version_1_0_7/src/framework/JavaScript/ajaxjsf/JSFAJAX.js
Log:
fixed issue
https://jira.exadel.com/browse/PS-86 with inaccessible event properties on IE
Modified: branches/version_1_0_7/src/framework/JavaScript/ajaxjsf/JSFAJAX.js
===================================================================
--- branches/version_1_0_7/src/framework/JavaScript/ajaxjsf/JSFAJAX.js 2007-07-17 13:15:28
UTC (rev 311)
+++ branches/version_1_0_7/src/framework/JavaScript/ajaxjsf/JSFAJAX.js 2007-07-25 15:07:03
UTC (rev 312)
@@ -402,10 +402,14 @@
A4J.AJAX.CloneObject = function( obj, noFunctions ) {
var cloned = {};
for( var n in obj ){
- if(noFunctions && typeof(evt[prop]) == 'function'){
- continue;
+ try {
+ if(noFunctions && typeof(obj[n]) == 'function'){
+ continue;
+ }
+ cloned[n]=obj[n];
+ } catch(e) {
+ LOG.warn(e.message || e);
}
- cloned[n]=obj[n];
}
return cloned;
}