⚡ Refact docs and examples (linting) (#22)

This commit is contained in:
jaandrle authored and GitHub committed 2024-12-13 15:04:52 +01:00
1 parent b50f8449aa
commit eef4e8dfa6
58 files changed
+1851 -1593

No files matched your search

@@ -36,7 +36,7 @@ function elClass(_class, attributes, ...addons){
});
element.prepend(el_mark);
if(is_fragment) element_host= el_mark;
chainableAppend(element);
addons.forEach(c=> c(element_host));
scope.pop();
+3 -1
View File
@@ -1,4 +1,6 @@
import { el, empty, on } from "deka-dom-el";
import { el, on } from "deka-dom-el";
/** @param {HTMLElement} el */
const empty= el=> Array.from(el.children).forEach(c=> c.remove());
document.body.append(
el(component),
el("button", {
@@ -23,7 +23,7 @@ function component(){
* const data= O("data");
* ul.append(el("li", data));
* });
*
*
* // THE HOST IS PROBABLY DIFFERENT THAN
* // YOU EXPECT AND OBSERVABLES MAY BE
* // UNEXPECTEDLY REMOVED!!!