franck34
17 May 2010, 12:01 PM
Sorry i'm too in hurry and loose 3 days on this bug. Don't have time to make a sample test case and fill a perfect bug report.
In some case, when applying a template to a component on safari embed in titanium appcelerator, i've got this error in the console :
"NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7: An attempt was made to modify an object"
To avoid this i have to rewrite overwrite template function in extjs (3.2.1) :
Ext.Template.prototype.overwrite=function(el, values, returnElement){
el = Ext.getDom(el);
if (el.tagName=='INPUT') {
el.value = this.applyTemplate(values);
} else {
el.innerHTML = this.applyTemplate(values);
}
return returnElement ? Ext.get(el.firstChild, true) : el.firstChild;
}Rather than
Ext.Template.prototype.overwrite=function(el, values, returnElement){
el = Ext.getDom(el);
el.innerHTML = this.applyTemplate(values);
return returnElement ? Ext.get(el.firstChild, true) : el.firstChild;
}
In some case, when applying a template to a component on safari embed in titanium appcelerator, i've got this error in the console :
"NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7: An attempt was made to modify an object"
To avoid this i have to rewrite overwrite template function in extjs (3.2.1) :
Ext.Template.prototype.overwrite=function(el, values, returnElement){
el = Ext.getDom(el);
if (el.tagName=='INPUT') {
el.value = this.applyTemplate(values);
} else {
el.innerHTML = this.applyTemplate(values);
}
return returnElement ? Ext.get(el.firstChild, true) : el.firstChild;
}Rather than
Ext.Template.prototype.overwrite=function(el, values, returnElement){
el = Ext.getDom(el);
el.innerHTML = this.applyTemplate(values);
return returnElement ? Ext.get(el.firstChild, true) : el.firstChild;
}