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