Merge branch 'patch-1' of https://github.com/domin1101/svelte into domin1101-patch-1

pull/1887/head
Rich Harris 7 years ago
commit 95484b71c1

@ -101,7 +101,7 @@ export function setAttributes(node, attributes) {
export function setCustomElementData(node, prop, value) {
if (prop in node) {
node[prop] = value;
} else if (value) {
} else if (value != null) {
setAttribute(node, prop, value);
} else {
node.removeAttribute(prop);

Loading…
Cancel
Save