✨ Add __dde_lifecycleToEvents flag to lifecycleToEvents

This commit is contained in:
jaandrle committed 2023-10-13 16:51:43 +02:00
1 parent 18f93d7e0b
commit 06ab87c06f
6 files changed
+176 -178

No files matched your search

+1
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 });