The code does not handle being passed multiple string event names as parameters.
The current code is:
Code:
addEvents : function(o){
if(!this.events){
this.events = {};
}
if(typeof o == 'string'){
for(var i = 0, a = arguments, v; v = a[i]; i++){
if(!this.events[a[i]]){
o[a[i]] = true;
}
}
}else{
Ext.applyIf(this.events, o);
}
},
It should be
Code:
addEvents : function(o){
if(!this.events){
this.events = {};
}
if(typeof o == 'string'){
for(var i = 0, a = arguments, v = o; v = a[i]; i++){
if(!this.events[v]){
this.events[v] = true;
}
}
}else{
Ext.applyIf(this.events, o);
}
},