From 1086bca3c2ab5fbf520a461e62f96cddf7f03b08 Mon Sep 17 00:00:00 2001 From: rr- Date: Mon, 11 Apr 2016 18:36:27 +0200 Subject: [PATCH] client/views: fix rendering non-void elements --- client/js/main.js | 1 - client/js/util/views.js | 4 ++-- client/js/views/top_nav_view.js | 1 + 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/js/main.js b/client/js/main.js index 7a03bb46..be919312 100644 --- a/client/js/main.js +++ b/client/js/main.js @@ -1,7 +1,6 @@ 'use strict'; require('./util/polyfill.js'); -require('./util/handlebars-helpers.js'); let controllers = []; controllers.push(require('./controllers/auth_controller.js')); diff --git a/client/js/util/views.js b/client/js/util/views.js index 04a04589..35abd715 100644 --- a/client/js/util/views.js +++ b/client/js/util/views.js @@ -37,8 +37,8 @@ function _serializeElement(name, attributes) { } function makeNonVoidElement(name, attributes, content) { - return '<{0}>{1}'.format( - _serializeElement(name, attributes), content); + return '<{0}>{1}'.format( + _serializeElement(name, attributes), content, name); } function makeVoidElement(name, attributes) { diff --git a/client/js/views/top_nav_view.js b/client/js/views/top_nav_view.js index 32105642..2c6cdf66 100644 --- a/client/js/views/top_nav_view.js +++ b/client/js/views/top_nav_view.js @@ -1,5 +1,6 @@ 'use strict'; +require('../util/handlebars-helpers.js'); const views = require('../util/views.js'); class TopNavView {