Jakub Jankiewicz 9 years ago
parent 01cc3564be
commit c3c88c73b3

@ -102,7 +102,7 @@ export default function createBinding ( generator, node, attribute, current, loc
}
` );
} else {
const updateElement = `${local.name}.${attribute.name} = ${contextual ? attribute.value : `root.${attribute.value}`}`;
const updateElement = `${local.name}.${attribute.name} = ${contextual ? attribute.value : `typeof root.${attribute.value} == 'undefined' ? '' : root.${attribute.value}`}`;
generator.uses.addEventListener = true;
generator.uses.removeEventListener = true;

Loading…
Cancel
Save