From ec9cb1004fc4ee6868e0926ee3d9aa2eb44c6a81 Mon Sep 17 00:00:00 2001 From: Thibaut Date: Sun, 8 Feb 2015 09:36:15 -0500 Subject: [PATCH] Tweak debug script --- assets/javascripts/debug.js.coffee | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/assets/javascripts/debug.js.coffee b/assets/javascripts/debug.js.coffee index c16b5c67..255293f0 100644 --- a/assets/javascripts/debug.js.coffee +++ b/assets/javascripts/debug.js.coffee @@ -36,11 +36,7 @@ app.Searcher = -> _match = @match.bind(@) @match = => - if @matcher - console.timeEnd @matcher.name - if @matcher.name is 'exactMatch' - for entries, score in @scoreMap by -1 when entries - console.log '' + score + ': ' + entries.map((entry) -> entry.text).join("\n ") + console.timeEnd @matcher.name if @matcher _match() _setupMatcher = @setupMatcher.bind(@) @@ -51,8 +47,8 @@ app.Searcher = -> _end = @end.bind(@) @end = -> console.log "Results: #{@totalResults}" - console.groupEnd() console.timeEnd 'Total' + console.groupEnd() _end() _kill = @kill.bind(@) @@ -66,6 +62,7 @@ app.Searcher = -> return +$.extend(app.Searcher, _super) _proto.constructor = app.Searcher app.Searcher.prototype = _proto