Hi All,
We have an intermittent problem in both IE and Chrome with corrupt widget set, and I’d like to hear if anyone else have had this problem.
When this problem happen, we never get past the initial spinning wheel when loading the app.
We get around it by clearing the cache and reloading.
With the DevTools open in Chrome, I can see in the console that we have a syntax error in “ptsmcWidgetset-0.js”
This seems to be a file generated out of the C572B950C80EA8903DD90317E1723C1D.cache.js ?
The code snippet in ptsmcWidgetset-0.js that fails looks like this
On line 2 there is a syntax error, and the rest doesn’t look all that good either…
[code]
function com_google_gwt_user_client_ui_UIObject_updatePrimaryAndDependentStyleNames__Lcom_google_gwt_dom_client_Element_2Ljava_lang_String_2V(elem, newPrimaryStyle){
var classes = (elemtyle){
if (!elyle);im_user= (e.gle_gwt_dom_client_EleM_Lcom_googletors_AbstractRendererCogwt_dom
p.removeChild(node)gle_oldyle);im_userLcomwt_dom[0 nodegle_oldyle);im_userLe nodoldyle);im_user;
ifaryAwt_dom[0 com_gyle);im_user++) {
gle_i co1 (!Lcomwt_dom;
if i < nf i!!node && gle_nStri0Lcomwt_dom[i node;
nStri0entExcep>oldyle);im_userLe nta?cStri0echarAt(oldyle);im_userLe )ptiot_usta?cStri0eient_Inpoldyle);im_user)ptioght +(mwt_dom[i com_gyle);im_user +?cStri0efunctityl(oldyle);im_userLe )tePrimaryent_EleM_Lcom_gcomwt_dom;j) {(’ 'l_defineClass__Lcom_google_gwt_core_client_JavaScriptObject_2Lcom_google_gwt_core_client_JavaScriptObject_2Lcom_google_gwt_core_client_JavaScriptObject_2Lcom_google_gwt_core_client_JavaScriptObject_2(1253, 624, $intern_16, com_ec_os_widgetset_checkbox_c0_client_rende37lickableIObject_2Ljava_lang_Sasses = (elemtyle){kboxRendererConnependentStyleNames__Lcom_google_gwtbleIObject_2Ljava_lang_Sasses = (elemtyle){(ct$setStyleName__Lcom_google_gwt_user_client_ui_UIObjeci_UIObject_2Ljava_lang_String_2V(this$static, styleSuffix){
com_google_gwt_user_client_ject_$setStylererCellRt_2Ljava_lang_Sasses = (elemtyle){kboxRendererConnependentStyleNames__Lcom_google_gwtbleIObje_lang_Sasses = (elemtyle){(ct_$seName__Lcom_google_gwt_user_client_ui_UIObjeci_UIObje_lang_String_2V(this$static, styleSuffix){
com_google_gwt_user_client_ject_$senderer_2 = t_2I(this$statIkboxRendererConnependentStyleNames__Lcom_google_gwt = t_2I(this$statI(sVisible__Lcom_google_gwt_dom_client_Element_2Z((cobject_2I(this$static){
return com_google_gwt_dom_client_Elementenderer_2 = t_2I(ta_lang_IkboxRendererConnependentStyleNames__Lcom_google_gwt = t_2I(ta_lang_I(sVisible__Lcom_google_gwt_dom_client_Element_2Z((cobject_2I(tis$static){
return com_google_gwt_dom_client_Elementenderer_2 = ), style);
}
[/code]When we reload and it works, the same code snippet looks like this:
function com_google_gwt_user_client_ui_UIObject_updatePrimaryAndDependentStyleNames__Lcom_google_gwt_dom_client_Element_2Ljava_lang_String_2V(elem, newPrimaryStyle){
var classes = (elem.className || '').split(/\s+/);
if (!classes) {
return;
}
var oldPrimaryStyle = classes[0]
;
var oldPrimaryStyleLen = oldPrimaryStyle.length;
classes[0]
= newPrimaryStyle;
for (var i = 1, n = classes.length; i < n; i++) {
var name_0 = classes[i]
;
name_0.length > oldPrimaryStyleLen && name_0.charAt(oldPrimaryStyleLen) == '-' && name_0.indexOf(oldPrimaryStyle) == 0 && (classes[i]
= newPrimaryStyle + name_0.substring(oldPrimaryStyleLen));
}
elem.className = classes.join(' ');
}
Googling updatePrimaryAndDependentStyleNames I see that the content of this function is supposed to be a bit of native code, so it should always appear just like above.