store refactoring

This commit is contained in:
Géry Debongnie
2019-02-20 14:55:49 +01:00
parent 16dc33cc05
commit 264420a96b
9 changed files with 376 additions and 289 deletions
+13
View File
@@ -30,3 +30,16 @@ document.addEventListener("DOMContentLoaded", async function() {
// For debugging purpose, we keep a reference to the root widget in odoo
(<any>window).odoo.rootWidget = rootWidget;
});
let testMixin = Base =>
class extends Base {
calc() {
return 32;
}
};
class Foo {}
class Bar extends testMixin(Foo) {}
console.log(new Bar().calc());