aboutsummaryrefslogtreecommitdiff
path: root/integration/bunjs-only-snippets/solid-dom-fixtures/eventExpressions
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-06-22 23:21:48 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-06-22 23:21:48 -0700
commit729d445b6885f69dd2c6355f38707bd42851c791 (patch)
treef87a7c408929ea3f57bbb7ace380cf869da83c0e /integration/bunjs-only-snippets/solid-dom-fixtures/eventExpressions
parent25f820c6bf1d8ec6d444ef579cc036b8c0607b75 (diff)
downloadbun-jarred/rename.tar.gz
bun-jarred/rename.tar.zst
bun-jarred/rename.zip
change the directory structurejarred/rename
Diffstat (limited to 'integration/bunjs-only-snippets/solid-dom-fixtures/eventExpressions')
-rw-r--r--integration/bunjs-only-snippets/solid-dom-fixtures/eventExpressions/code.js32
-rw-r--r--integration/bunjs-only-snippets/solid-dom-fixtures/eventExpressions/output.bun.js57
-rw-r--r--integration/bunjs-only-snippets/solid-dom-fixtures/eventExpressions/output.js63
3 files changed, 0 insertions, 152 deletions
diff --git a/integration/bunjs-only-snippets/solid-dom-fixtures/eventExpressions/code.js b/integration/bunjs-only-snippets/solid-dom-fixtures/eventExpressions/code.js
deleted file mode 100644
index 78bc5e199..000000000
--- a/integration/bunjs-only-snippets/solid-dom-fixtures/eventExpressions/code.js
+++ /dev/null
@@ -1,32 +0,0 @@
-function hoisted1() {
- console.log("hoisted");
-}
-const hoisted2 = () => console.log("hoisted delegated");
-
-const template = (
- <div id="main">
- <button onchange={() => console.log("bound")}>Change Bound</button>
- <button onChange={[(id) => console.log("bound", id), id]}>
- Change Bound
- </button>
- <button onchange={handler}>Change Bound</button>
- <button onchange={[handler]}>Change Bound</button>
- <button onchange={hoisted1}>Change Bound</button>
- <button onclick={() => console.log("delegated")}>Click Delegated</button>
- <button onClick={[(id) => console.log("delegated", id), rowId]}>
- Click Delegated
- </button>
- <button onClick={handler}>Click Delegated</button>
- <button onClick={[handler]}>Click Delegated</button>
- <button onClick={hoisted2}>Click Delegated</button>
- <button
- on:click={() => console.log("listener")}
- on:CAPS-ev={() => console.log("custom")}
- >
- Click Listener
- </button>
- <button oncapture:camelClick={() => console.log("listener")}>
- Click Capture
- </button>
- </div>
-);
diff --git a/integration/bunjs-only-snippets/solid-dom-fixtures/eventExpressions/output.bun.js b/integration/bunjs-only-snippets/solid-dom-fixtures/eventExpressions/output.bun.js
deleted file mode 100644
index 5d90654f9..000000000
--- a/integration/bunjs-only-snippets/solid-dom-fixtures/eventExpressions/output.bun.js
+++ /dev/null
@@ -1,57 +0,0 @@
-var _tmpl$1 = _template$(
- '<div id="main"><button>Change Bound</button><button>Change Bound</button><button>Change Bound</button><button>Change Bound</button><button>Change Bound</button><button>Click Delegated</button><button>Click Delegated</button><button>Click Delegated</button><button>Click Delegated</button><button>Click Delegated</button><button>Click Listener</button><button>Click Capture</button></div>',
- 26
-);
-function hoisted1() {
- console.log("hoisted");
-}
-const hoisted2 = () => console.log("hoisted delegated");
-const template = () => {
- var _el = _tmpl.cloneNode(true),
- _el$1 = _el.firstChild,
- _el$2 = _el$1.nextSibling,
- _el$3 = _el$2.nextSibling,
- _el$4 = _el$3.nextSibling,
- _el$5 = _el$4.nextSibling,
- _el$6 = _el$5.nextSibling,
- _el$7 = _el$6.nextSibling,
- _el$8 = _el$7.nextSibling,
- _el$9 = _el$8.nextSibling,
- _el$10 = _el$9.nextSibling,
- _el$11 = _el$10.nextSibling;
- effect(() => {
- return setAttribute(_el, "onchange", () => console.log("bound"));
- });
- effect(() => {
- return setAttribute(_el$1, "onChange", [
- (id) => console.log("bound", id),
- id,
- ]);
- });
- setAttribute(_el$2, "onchange", handler);
- effect(() => {
- return setAttribute(_el$3, "onchange", [handler]);
- });
- setAttribute(_el$4, "onchange", hoisted1);
- _el$5.$$click = () => console.log("delegated");
- effect(() => {
- return (_el$6.$$click = [(id) => console.log("delegated", id), rowId]);
- });
- effect(() => {
- return (_el$7.$$click = handler);
- });
- effect(() => {
- return (_el$8.$$click = [handler]);
- });
- effect(() => {
- return (_el$9.$$click = hoisted2);
- });
- _el$10.addEventListener("click", () => console.log("listener"));
- _el$10.addEventListener("CAPS-ev", () => console.log("custom"));
- _el$11.addEventListener(
- "apture:camelClick",
- () => console.log("listener"),
- true
- );
- return _el;
-};
diff --git a/integration/bunjs-only-snippets/solid-dom-fixtures/eventExpressions/output.js b/integration/bunjs-only-snippets/solid-dom-fixtures/eventExpressions/output.js
deleted file mode 100644
index c24a1f89f..000000000
--- a/integration/bunjs-only-snippets/solid-dom-fixtures/eventExpressions/output.js
+++ /dev/null
@@ -1,63 +0,0 @@
-import { template as _$template } from "r-dom";
-import { delegateEvents as _$delegateEvents } from "r-dom";
-import { addEventListener as _$addEventListener } from "r-dom";
-
-const _tmpl$ = /*#__PURE__*/ _$template(
- `<div id="main"><button>Change Bound</button><button>Change Bound</button><button>Change Bound</button><button>Change Bound</button><button>Change Bound</button><button>Click Delegated</button><button>Click Delegated</button><button>Click Delegated</button><button>Click Delegated</button><button>Click Delegated</button><button>Click Listener</button><button>Click Capture</button></div>`,
- 26
-);
-
-function hoisted1() {
- console.log("hoisted");
-}
-
-const hoisted2 = () => console.log("hoisted delegated");
-
-const template = (() => {
- const _el$ = _tmpl$.cloneNode(true),
- _el$2 = _el$.firstChild,
- _el$3 = _el$2.nextSibling,
- _el$4 = _el$3.nextSibling,
- _el$5 = _el$4.nextSibling,
- _el$6 = _el$5.nextSibling,
- _el$7 = _el$6.nextSibling,
- _el$8 = _el$7.nextSibling,
- _el$9 = _el$8.nextSibling,
- _el$10 = _el$9.nextSibling,
- _el$11 = _el$10.nextSibling,
- _el$12 = _el$11.nextSibling,
- _el$13 = _el$12.nextSibling;
-
- _el$2.addEventListener("change", () => console.log("bound"));
-
- _el$3.addEventListener("change", (e) =>
- ((id) => console.log("bound", id))(id, e)
- );
-
- _$addEventListener(_el$4, "change", handler);
-
- _el$5.addEventListener("change", handler);
-
- _el$6.addEventListener("change", hoisted1);
-
- _el$7.$$click = () => console.log("delegated");
-
- _el$8.$$click = (id) => console.log("delegated", id);
-
- _el$8.$$clickData = rowId;
-
- _$addEventListener(_el$9, "click", handler, true);
-
- _el$10.$$click = handler;
- _el$11.$$click = hoisted2;
-
- _el$12.addEventListener("click", () => console.log("listener"));
-
- _el$12.addEventListener("CAPS-ev", () => console.log("custom"));
-
- _el$13.addEventListener("camelClick", () => console.log("listener"), true);
-
- return _el$;
-})();
-
-_$delegateEvents(["click"]);