mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[IMP] owl: update to v0.18.0
This commit is contained in:
@@ -338,7 +338,7 @@ function makeStore() {
|
|||||||
todos,
|
todos,
|
||||||
nextId
|
nextId
|
||||||
};
|
};
|
||||||
const store = new owl.Store({
|
const store = new owl.store.Store({
|
||||||
state,
|
state,
|
||||||
actions,
|
actions,
|
||||||
mutations
|
mutations
|
||||||
@@ -405,7 +405,7 @@ class TodoItem extends owl.Component {
|
|||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// TodoApp
|
// TodoApp
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
class TodoApp extends owl.ConnectedComponent {
|
class TodoApp extends owl.store.ConnectedComponent {
|
||||||
components = { TodoItem };
|
components = { TodoItem };
|
||||||
state = { filter: "all" };
|
state = { filter: "all" };
|
||||||
|
|
||||||
@@ -953,7 +953,7 @@ function setupResponsivePlugin(env) {
|
|||||||
const updateEnv = owl.utils.debounce(() => {
|
const updateEnv = owl.utils.debounce(() => {
|
||||||
if (env.isMobile !== isMobile()) {
|
if (env.isMobile !== isMobile()) {
|
||||||
env.isMobile = !env.isMobile;
|
env.isMobile = !env.isMobile;
|
||||||
env.qweb.trigger('update');
|
env.qweb.forceUpdate();
|
||||||
}
|
}
|
||||||
}, 15);
|
}, 15);
|
||||||
window.addEventListener("resize", updateEnv);
|
window.addEventListener("resize", updateEnv);
|
||||||
|
|||||||
Reference in New Issue
Block a user