[REF] initial prototype of owl 2

This commit is contained in:
Géry Debongnie
2020-11-26 16:45:25 +01:00
committed by Aaron Bohy
parent c06049076a
commit e746574a1d
186 changed files with 29153 additions and 33120 deletions
+10
View File
@@ -0,0 +1,10 @@
export function mainEventHandler(data: any, ev: Event) {
if (typeof data === "function") {
data(ev);
} else {
const ctx = data[0];
const method = data[1];
const args = data[2] || [];
ctx.__owl__.component[method](...args, ev);
}
}