[IMP] owl: update to v0.18.0

This commit is contained in:
Géry Debongnie
2019-08-22 15:05:45 +02:00
parent ef2268d601
commit acc85a52fc
2 changed files with 1735 additions and 1539 deletions
+3 -3
View File
@@ -338,7 +338,7 @@ function makeStore() {
todos,
nextId
};
const store = new owl.Store({
const store = new owl.store.Store({
state,
actions,
mutations
@@ -405,7 +405,7 @@ class TodoItem extends owl.Component {
//------------------------------------------------------------------------------
// TodoApp
//------------------------------------------------------------------------------
class TodoApp extends owl.ConnectedComponent {
class TodoApp extends owl.store.ConnectedComponent {
components = { TodoItem };
state = { filter: "all" };
@@ -953,7 +953,7 @@ function setupResponsivePlugin(env) {
const updateEnv = owl.utils.debounce(() => {
if (env.isMobile !== isMobile()) {
env.isMobile = !env.isMobile;
env.qweb.trigger('update');
env.qweb.forceUpdate();
}
}, 15);
window.addEventListener("resize", updateEnv);