[refactor] improve title render

This commit is contained in:
Kuldeep M 2019-07-15 17:54:31 +01:00
parent bc7f95669c
commit 4ae20b0444
2 changed files with 5 additions and 3 deletions

View File

@ -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"),

View File

@ -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