diff --git a/src/js/control.js b/src/js/control.js index 1beb5f9f..29ef5b00 100644 --- a/src/js/control.js +++ b/src/js/control.js @@ -255,7 +255,7 @@ var control = (function() { path: "layout.title", type: "text", func: function() { - title.render(); + title.render.name(); } }, { element: helper.e(".control-layout-scrollpastend"), diff --git a/src/js/title.js b/src/js/title.js index 353a8b75..a9c3f0bc 100644 --- a/src/js/title.js +++ b/src/js/title.js @@ -1,11 +1,13 @@ var title = (function() { - var render = function() { + var render = {}; + + render.name = function() { helper.e("title").textContent = state.get().layout.title; }; var init = function() { - render(); + render.name(); }; // exposed methods