From 6017dc37ffbb78fb3143a2a41f3c356164414175 Mon Sep 17 00:00:00 2001 From: Janne Koschinski <janne@kuschku.de> Date: Sat, 14 Oct 2017 03:34:56 +0200 Subject: [PATCH] Fixed a minor UI bug --- res/js/component/app.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/res/js/component/app.js b/res/js/component/app.js index 60a3597..8bdebe9 100644 --- a/res/js/component/app.js +++ b/res/js/component/app.js @@ -1,5 +1,4 @@ const statehandler = new StateHandler(); - class App { constructor() { this.navigation = new Navigation(); @@ -14,7 +13,6 @@ class App { }); statehandler.init(); } - render() { this.elem = function () { var $$a = document.createElement('div'); @@ -28,7 +26,6 @@ class App { }.call(this); this.buffers.forEach(buffer => this.insert(buffer)); } - search(query, sender, buffer, network, before, since) { this.clear(); this.navigation.input.blur(); @@ -51,25 +48,21 @@ class App { this.buffers.forEach(buffer => this.insert(buffer)); }); } - clear() { while (this.buffers.length) { const buffer = this.buffers.pop(); this.resultContainer.removeChild(buffer.elem); } } - clearAll() { this.clear(); this.navigation.historyView.clear(); statehandler.clear(); } - insert(buffer) { this.resultContainer.appendChild(buffer.elem); buffer.addEventListener('loadMore', () => this.bufferLoadMore(buffer)); } - bufferLoadMore(buffer) { if (buffer.loading) return; @@ -85,7 +78,6 @@ class App { }); } } - moment.locale(navigator.languages || navigator.language); const app = new App(); document.body.insertBefore(app.elem, document.body.firstChild); \ No newline at end of file -- GitLab