PDA

View Full Version : MixedCollection removeAt bug



petecollins73
5 Jan 2007, 12:37 AM
Hi, I think the removeAt method in the MixedCollection needs a line adding so the removed object is available in the fireEvent.

removeAt : function(index){
var o = this.items[index];
this.items.splice(index, 1);
var key = this.keys[index];
if(typeof key != 'undefined'){
this.keys.splice(index, 1);
delete this.items[key];
}
this.fireEvent('remove', o, key);

jack.slocum
5 Jan 2007, 9:12 AM
Thank you.