1
0
mirror of https://github.com/jaandrle/deka-dom-el synced 2025-07-01 12:22:15 +02:00

Add __dde_lifecycleToEvents flag to lifecycleToEvents

This commit is contained in:
2023-10-13 16:51:43 +02:00
parent 18f93d7e0b
commit 06ab87c06f
6 changed files with 176 additions and 178 deletions

View File

@ -74,6 +74,7 @@ function lifecycleToEvents(class_declaration){
}));
target.apply(thisArg, detail);
});
class_declaration.prototype.__dde_lifecycleToEvents= true;
}
function wrapMethod(obj, method, apply){
obj[method]= new Proxy(obj[method] || (()=> {}), { apply });