fix #3586 comments istead of empty txt nodes(perf)

pull/3642/head
neuronet.io 6 years ago
parent 5dda05213e
commit 966521196e

@ -53,7 +53,7 @@ export function space() {
} }
export function empty() { export function empty() {
return text(''); return document.createComment('');
} }
export function listen(node: Node, event: string, handler: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | EventListenerOptions) { export function listen(node: Node, event: string, handler: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | EventListenerOptions) {

Loading…
Cancel
Save