diff --git a/client/js/views/empty_view.js b/client/js/views/empty_view.js index 2142fb8..48c06fd 100644 --- a/client/js/views/empty_view.js +++ b/client/js/views/empty_view.js @@ -4,12 +4,15 @@ const views = require('../util/views.js'); class EmptyView { constructor() { - this.template = views.htmlToDom('
'); + this.template = () => { + return views.htmlToDom( + '
'); + }; } render(ctx) { const target = document.getElementById('content-holder'); - const source = this.template; + const source = this.template(); views.listenToMessages(source); views.showView(target, source); }