PDA

View Full Version : Ext.util.Event Methode: addListener



muc1
12 Apr 2007, 11:05 PM
if(!this.firing)
{
this.listeners.push(l);
}else{
// The push method is used to add one or more elements to an array,
// returning the new length of it. This affects the length of the array and NOT
// the array.

this.listeners = this.listeners.slice(0).push(l);
}

jack.slocum
13 Apr 2007, 3:44 AM
Thanks, this is similar to another one I just fixed.