client/views: fix rendering non-void elements

This commit is contained in:
rr- 2016-04-11 18:36:27 +02:00
parent d6daf84da0
commit 1086bca3c2
3 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,6 @@
'use strict'; 'use strict';
require('./util/polyfill.js'); require('./util/polyfill.js');
require('./util/handlebars-helpers.js');
let controllers = []; let controllers = [];
controllers.push(require('./controllers/auth_controller.js')); controllers.push(require('./controllers/auth_controller.js'));

View File

@ -37,8 +37,8 @@ function _serializeElement(name, attributes) {
} }
function makeNonVoidElement(name, attributes, content) { function makeNonVoidElement(name, attributes, content) {
return '<{0}>{1}</{0}>'.format( return '<{0}>{1}</{2}>'.format(
_serializeElement(name, attributes), content); _serializeElement(name, attributes), content, name);
} }
function makeVoidElement(name, attributes) { function makeVoidElement(name, attributes) {

View File

@ -1,5 +1,6 @@
'use strict'; 'use strict';
require('../util/handlebars-helpers.js');
const views = require('../util/views.js'); const views = require('../util/views.js');
class TopNavView { class TopNavView {