History

Tweak debug script

Thibaut committed 11 years ago

Commit ec9cb101 parent d8f34b51 file · +3 −6Browse files

Showing the changes to assets/javascripts (1 of 1 file). Show all

Unified · Split

assets/javascripts/debug.js.coffee+3−6
@@ -36,11 +36,7 @@ app.Searcher = -> · 35 unmodified lines
3636
3737 _match = @match.bind(@)
3838 @match = =>
39− if @matcher
40− console.timeEnd @matcher.name
41− if @matcher.name is 'exactMatch'
42− for entries, score in @scoreMap by -1 when entries
43− console.log '' + score + ': ' + entries.map((entry) -> entry.text).join("\n ")
39+ console.timeEnd @matcher.name if @matcher
4440 _match()
4541
4642 _setupMatcher = @setupMatcher.bind(@)
@@ -51,8 +47,8 @@ app.Searcher = -> · 4 unmodified lines
5147 _end = @end.bind(@)
5248 @end = ->
5349 console.log "Results: #{@totalResults}"
54− console.groupEnd()
5550 console.timeEnd 'Total'
51+ console.groupEnd()
5652 _end()
5753
5854 _kill = @kill.bind(@)
@@ -66,6 +62,7 @@ app.Searcher = -> · 7 unmodified lines
6662
6763 return
6864
65+$.extend(app.Searcher, _super)
6966 _proto.constructor = app.Searcher
7067 app.Searcher.prototype = _proto
7168