mirror of
https://github.com/zombieFox/nightTab.git
synced 2024-11-24 17:14:28 +01:00
[refactor] improve title render
This commit is contained in:
parent
bc7f95669c
commit
4ae20b0444
@ -255,7 +255,7 @@ var control = (function() {
|
|||||||
path: "layout.title",
|
path: "layout.title",
|
||||||
type: "text",
|
type: "text",
|
||||||
func: function() {
|
func: function() {
|
||||||
title.render();
|
title.render.name();
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
element: helper.e(".control-layout-scrollpastend"),
|
element: helper.e(".control-layout-scrollpastend"),
|
||||||
|
@ -1,11 +1,13 @@
|
|||||||
var title = (function() {
|
var title = (function() {
|
||||||
|
|
||||||
var render = function() {
|
var render = {};
|
||||||
|
|
||||||
|
render.name = function() {
|
||||||
helper.e("title").textContent = state.get().layout.title;
|
helper.e("title").textContent = state.get().layout.title;
|
||||||
};
|
};
|
||||||
|
|
||||||
var init = function() {
|
var init = function() {
|
||||||
render();
|
render.name();
|
||||||
};
|
};
|
||||||
|
|
||||||
// exposed methods
|
// exposed methods
|
||||||
|
Loading…
Reference in New Issue
Block a user