Skip to content

Commit

Permalink
fix sveltejs#3586 comments istead of empty txt nodes(perf)
Browse files Browse the repository at this point in the history
  • Loading branch information
neuronetio committed Oct 1, 2019
1 parent 5dda052 commit 9665211
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/internal/dom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export function space() {
}

export function empty() {
return text('');
return document.createComment('');
}

export function listen(node: Node, event: string, handler: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | EventListenerOptions) {
Expand Down

0 comments on commit 9665211

Please sign in to comment.