diff --git a/src/ts_source/search.ts b/src/ts_source/search.ts index 86323a5..7a36903 100644 --- a/src/ts_source/search.ts +++ b/src/ts_source/search.ts @@ -2,7 +2,6 @@ import {Configurator, DocumentDirectory} from "./fileutils"; import * as path from "path"; import {buildCardsFromConfig, buildUiFromConfig} from "./viewFactory"; - function register() { let searchBar = $("#searchfield"); let searchButton = $("#searchbutton"); @@ -55,7 +54,6 @@ function getFileCardsWithSearchTerm(term): Map { } } - return map; } @@ -125,5 +123,4 @@ function escapeRegExp(term: string): string { return term.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); // $& means the whole matched string } - register() \ No newline at end of file