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
36 36
37 _match = @match.bind(@)37 _match = @match.bind(@)
38 @match = =>38 @match = =>
39 if @matcher39 console.timeEnd @matcher.name 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 ")
44 _match()40 _match()
45 41
46 _setupMatcher = @setupMatcher.bind(@)42 _setupMatcher = @setupMatcher.bind(@)
@@ -51,8 +47,8 @@ app.Searcher = -> · 4 unmodified lines
51 _end = @end.bind(@)47 _end = @end.bind(@)
52 @end = ->48 @end = ->
53 console.log "Results: #{@totalResults}"49 console.log "Results: #{@totalResults}"
54 console.groupEnd()
55 console.timeEnd 'Total'50 console.timeEnd 'Total'
51 console.groupEnd()
56 _end()52 _end()
57 53
58 _kill = @kill.bind(@)54 _kill = @kill.bind(@)
@@ -66,6 +62,7 @@ app.Searcher = -> · 7 unmodified lines
66 62
67 return63 return
68 64
65$.extend(app.Searcher, _super)
69_proto.constructor = app.Searcher66_proto.constructor = app.Searcher
70app.Searcher.prototype = _proto67app.Searcher.prototype = _proto
71 68