diff --git a/src/component/layout/index.js b/src/component/layout/index.js index 8b50b8ea..4291c15f 100644 --- a/src/component/layout/index.js +++ b/src/component/layout/index.js @@ -56,13 +56,9 @@ layout.area = { }); - set({ - object: state.get.current(), - path: 'layout.breakpoint', - value: breakpoint - }); + state.get.current().layout.breakpoint = breakpoint; - layout.breakpoint.bind(); + layout.breakpoint.render(); }); @@ -143,7 +139,7 @@ layout.bookmark = { }; layout.breakpoint = { - bind: () => { + render: () => { const html = document.querySelector('html'); @@ -221,7 +217,6 @@ layout.init = () => { 'layout.overscroll' ]); layout.area.render(); - layout.breakpoint.bind(); layout.title.render(); }; diff --git a/src/component/update/index.js b/src/component/update/index.js index 3ce309ef..846e00f3 100644 --- a/src/component/update/index.js +++ b/src/component/update/index.js @@ -538,6 +538,8 @@ update.mod['7.0.0'] = function(data) { }); + data.state.layout.breakpoint = data.state.bookmark.breakpoint; + delete data.state.bookmark.area; delete data.state.bookmark.item;