From 6c0b7cda85752b759e2b740a8a55cbbfb1a89cbd Mon Sep 17 00:00:00 2001 From: Robert Buels Date: Wed, 13 Jun 2012 16:04:45 +0000 Subject: [PATCH] just do backtracing of main init handlers in production, does not have much of a performance penalty --- js/Browser.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/Browser.js b/js/Browser.js index 6b5b58512f..29c56d682a 100644 --- a/js/Browser.js +++ b/js/Browser.js @@ -52,10 +52,10 @@ var Browser = function(params) { var browser = this; dojo.addOnLoad( function() { browser.loadConfig(); } ); - dojo.connect( this, 'onConfigLoaded', this, 'loadRefSeqs' ); - dojo.connect( this, 'onConfigLoaded', this, 'loadNames' ); - dojo.connect( this, 'onRefSeqsLoaded', this, 'initView' ); - dojo.connect( this, 'onRefSeqsLoaded', this, 'reportUsageStats' ); + dojo.connect( this, 'onConfigLoaded', Util.debugHandler( this, 'loadRefSeqs' )); + dojo.connect( this, 'onConfigLoaded', Util.debugHandler( this, 'loadNames' )); + dojo.connect( this, 'onRefSeqsLoaded', Util.debugHandler( this, 'initView' )); + dojo.connect( this, 'onRefSeqsLoaded', Util.debugHandler( this, 'reportUsageStats' )); }; /**