Skip to content

Commit 0968e55

Browse files
committed
#3940 revert auto-formatting changes
1 parent 9ad664e commit 0968e55

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/runtime/internal/dom.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,23 +72,23 @@ export function listen(node: EventTarget, event: string, handler: EventListenerO
7272
}
7373

7474
export function prevent_default(fn) {
75-
return function (event) {
75+
return function(event) {
7676
event.preventDefault();
7777
// @ts-ignore
7878
return fn.call(this, event);
7979
};
8080
}
8181

8282
export function stop_propagation(fn) {
83-
return function (event) {
83+
return function(event) {
8484
event.stopPropagation();
8585
// @ts-ignore
8686
return fn.call(this, event);
8787
};
8888
}
8989

9090
export function self(fn) {
91-
return function (event) {
91+
return function(event) {
9292
// @ts-ignore
9393
if (event.target === this) fn.call(this, event);
9494
};
@@ -317,7 +317,7 @@ export function toggle_class(element, name, toggle) {
317317
element.classList[toggle ? 'add' : 'remove'](name);
318318
}
319319

320-
export function custom_event<T = any>(type: string, detail?: T) {
320+
export function custom_event<T=any>(type: string, detail?: T) {
321321
const e: CustomEvent<T> = document.createEvent('CustomEvent');
322322
e.initCustomEvent(type, false, false, detail);
323323
return e;

0 commit comments

Comments
 (0)