From 9abfc796e11f35f49e46e1d78b7d62546c83ddfe Mon Sep 17 00:00:00 2001 From: Sebastian Sdorra Date: Sun, 6 Mar 2011 14:18:20 +0100 Subject: [PATCH] fix scope problem --- scm-webapp/src/main/webapp/resources/js/sonia.scm.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scm-webapp/src/main/webapp/resources/js/sonia.scm.js b/scm-webapp/src/main/webapp/resources/js/sonia.scm.js index 6da6cd044f..a2fde3f998 100644 --- a/scm-webapp/src/main/webapp/resources/js/sonia.scm.js +++ b/scm-webapp/src/main/webapp/resources/js/sonia.scm.js @@ -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); } });