PDA

View Full Version : [FIXED] 4.2.0beta : destroy tries to remove non-existing resizer handles



christophe.geiser
17 Dec 2012, 7:26 AM
Destroying a resizable component causes error when is has been initiated with custom handles config.

Workaroud:



// BUG : trying to remove non-existing resizer handles
Ext.override(Ext.resizer.Resizer, {
destroy: function() {
var i = 0,
exist,
handles = this.handles,
len = handles.length,
positions = this.possiblePositions;


for (; i < len; i++) {
if(exist = this[positions[handles[i]]]) {exist.remove()};
}
}
});


Cheers,
C.

dongryphon
18 Dec 2012, 12:20 AM
Thanks for the report! I have opened a bug in our bug tracker.