Showing the changes to assets/javascripts (1 of 1 file). Show all
Unified · Split
| @@ -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 @matcher | 39 | 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 | return | 63 | return |
| 68 | 64 | ||
| 65 | $.extend(app.Searcher, _super) | ||
| 69 | _proto.constructor = app.Searcher | 66 | _proto.constructor = app.Searcher |
| 70 | app.Searcher.prototype = _proto | 67 | app.Searcher.prototype = _proto |
| 71 | 68 | ||