Threaded View
-
10 Nov 2008 6:06 AM #1
[2.2][CLOSED] Bug in Ext.Panel.onRender
[2.2][CLOSED] Bug in Ext.Panel.onRender
Line 687 - 693:
Notice the lineCode:if(this.tools){ var ts = this.tools; this.tools = {}; this.addTool.apply(this, ts); }else{ this.tools = {}; }
Obviously, Function.prototype.apply expects the second argument to be of type Array, but instead an object is passed, which will throw an error.Code:this.addTool.apply(this, ts);
Changing the line
toCode:this.addTool.apply(this, ts);
Will fix this issue.Code:this.addTool.apply(this, [ts]);
HTHATINCW
Thorsten



Reply With Quote