mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
store refactoring
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user