mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
linting
This commit is contained in:
@@ -12,13 +12,11 @@ import { Action } from "./actions";
|
||||
// { id: 2, title: "CRM", Widget: CRM }
|
||||
// ];
|
||||
|
||||
|
||||
|
||||
export default class ActionManager {
|
||||
doAction(action: Action) {
|
||||
console.log(action);
|
||||
// load data (??)
|
||||
// trigger action somewhere
|
||||
// upload url with router
|
||||
}
|
||||
}
|
||||
doAction(action: Action) {
|
||||
console.log(action);
|
||||
// load data (??)
|
||||
// trigger action somewhere
|
||||
// upload url with router
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,2 +1 @@
|
||||
|
||||
export default class Ajax{}
|
||||
export default class Ajax {}
|
||||
|
||||
@@ -16,11 +16,14 @@ export default class Router {
|
||||
|
||||
constructor() {
|
||||
window.addEventListener("popstate", this.onUrlChange.bind(this));
|
||||
window.onhashchange = function () { console.log('aaaa'); debugger; }
|
||||
window.onhashchange = function() {
|
||||
console.log("aaaa");
|
||||
debugger;
|
||||
};
|
||||
}
|
||||
|
||||
onUrlChange(event: PopStateEvent) {
|
||||
debugger
|
||||
debugger;
|
||||
event.preventDefault();
|
||||
const info = this.getRoute();
|
||||
for (let listener of this.listeners) {
|
||||
|
||||
Reference in New Issue
Block a user