I am trying to make this override:

PHP Code:

Ext
.override(Ext.util.Observable, {
    
addManagedListener : function(itemenamefnscopeoptions) {
        var 
me this,
            
managedListeners me.managedListeners me.managedListeners || [],
            
config;

        if (
Ext.isObject(ename)) {
            
options ename;
            for (
ename in options) {
                if (!
options.hasOwnProperty(ename)) {
                    continue;
                }
                
config options[ename];
                if (!
me.eventOptionsRe.test(ename)) {
                    
me.addManagedListener(itemenameconfig.fn || configconfig.scope || options.scopeconfig.fn config options);
                }
            }
        }
        else {
            
managedListeners.push({
                
itemitem,
                
enameename,
                
fnfn,
                
scopescope,
                
optionsoptions
            
});
            
//item.on(ename, fn, scope, options); //Commenting out the line that breaks.
        
}
    }
}); 
You can see that I've commented the line that breaks my application, but oddly the override doesn't seem to be applied. The error still shows up in FF pointing to this line in ext-debug-all, rather that in my overrides file.
I have also tried adding a console.log('test') line to this override, and that part is executed!!

I have no idea what's going on. Any ideas?