From 9b1402cb71d9280ef3c872cefc48f005d9d6867d Mon Sep 17 00:00:00 2001 From: Thibaut Date: Thu, 1 Jan 2015 15:01:03 -0500 Subject: [PATCH] Tweak debug js --- assets/javascripts/debug.js.coffee | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/assets/javascripts/debug.js.coffee b/assets/javascripts/debug.js.coffee index 135ff380..c16b5c67 100644 --- a/assets/javascripts/debug.js.coffee +++ b/assets/javascripts/debug.js.coffee @@ -13,16 +13,18 @@ app.init = -> _start = app.start app.start = -> - _start.call(app, arguments...) console.timeEnd 'Load' - -_super = app.Searcher -_proto = app.Searcher.prototype + console.time 'Start' + _start.call(app, arguments...) + console.timeEnd 'Start' # # Searcher # +_super = app.Searcher +_proto = app.Searcher.prototype + app.Searcher = -> _super.apply @, arguments