1
0
mirror of https://github.com/jaandrle/deka-dom-el synced 2025-07-01 20:32:13 +02:00

💥 WIP custom elements docs and types and utils

This commit is contained in:
2024-01-09 21:18:43 +01:00
parent 91f8c96eac
commit 13c75fede1
14 changed files with 141 additions and 8 deletions

View File

@ -27,7 +27,6 @@ export function lifecycleToEvents(class_declaration){
class_declaration.prototype.__dde_lifecycleToEvents= true;
return class_declaration;
}
// https://gist.github.com/WebReflection/ec9f6687842aa385477c4afca625bbf4
export { lifecycleToEvents as customElementWithDDE };
function wrapMethod(obj, method, apply){
obj[method]= new Proxy(obj[method] || (()=> {}), { apply });