diff --git a/examples/todoapp/TodoApp.js b/examples/todoapp/TodoApp.js index b6be49ca..ef3d0f8f 100644 --- a/examples/todoapp/TodoApp.js +++ b/examples/todoapp/TodoApp.js @@ -1,7 +1,6 @@ import { TodoItem } from "./TodoItem.js"; -const { Component } = owl.core; -const { connect } = owl.extras; +const { Component, connect } = owl; const ENTER_KEY = 13; diff --git a/examples/todoapp/TodoItem.js b/examples/todoapp/TodoItem.js index 6d4e60e3..8b0398a0 100644 --- a/examples/todoapp/TodoItem.js +++ b/examples/todoapp/TodoItem.js @@ -1,7 +1,7 @@ const ENTER_KEY = 13; const ESC_KEY = 27; -export class TodoItem extends owl.core.Component { +export class TodoItem extends owl.Component { template = "todoitem"; state = { isEditing: false }; diff --git a/examples/todoapp/main.js b/examples/todoapp/main.js index 046300f0..c5947e06 100644 --- a/examples/todoapp/main.js +++ b/examples/todoapp/main.js @@ -8,7 +8,7 @@ async function makeEnv() { } let templates = await result.text(); templates = templates.replace(//g, ""); - const qweb = new owl.core.QWeb(); + const qweb = new owl.QWeb(); qweb.loadTemplates(templates); return { qweb, diff --git a/examples/todoapp/store.js b/examples/todoapp/store.js index 2ceea718..1ce6d897 100644 --- a/examples/todoapp/store.js +++ b/examples/todoapp/store.js @@ -66,7 +66,7 @@ export function makeStore() { ); const nextId = Math.max(0, ...todos.map(t => t.id || 0)) + 1; const state = { todos, nextId }; - const store = new owl.extras.Store({ state, actions, mutations }); + const store = new owl.Store({ state, actions, mutations }); store.on("update", null, () => { const state = JSON.stringify(store.state.todos); window.localStorage.setItem(LOCALSTORAGE_KEY, state);