only coerce once

pull/2357/head
Rich Harris 7 years ago committed by GitHub
parent 6ef8137b4b
commit 2b7b1c7e91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -154,7 +154,8 @@ export function claim_text(nodes, data) {
}
export function set_data(text, data) {
if (text.data !== '' + data) text.data = '' + data;
data = '' + data;
if (text.data !== data) text.data = data;
}
export function set_input_type(input, type) {

Loading…
Cancel
Save