fix scope problem

This commit is contained in:
Sebastian Sdorra
2011-03-06 14:18:20 +01:00
parent 4c22d0a62a
commit 9abfc796e1

View File

@@ -316,11 +316,11 @@ Sonia.scm.Main = Ext.extend(Ext.util.Observable, {
if ( Ext.isFunction(callback) ){
this.addListener(event, callback);
} else if (Ext.isObject(callback)) {
this.main.addListener(event, callback.fn, callback.scope);
this.addListener(event, callback.fn, callback.scope);
} else if (debug){
console.debug( "callback is not a function or object. " + callback );
}
});
}, this);
}
});