fix invalid binding error report

pull/5963/head
bluwy 5 years ago
parent 8a1a62ec5d
commit 3317eb3a42

@ -735,11 +735,6 @@ export default class Element extends Node {
return component.error(contenteditable, compiler_errors.dynamic_contenteditable_attribute); return component.error(contenteditable, compiler_errors.dynamic_contenteditable_attribute);
} }
} else if (name !== 'this' && !sizing.test(name)) { } else if (name !== 'this' && !sizing.test(name)) {
component.error(binding, {
code: 'invalid-binding',
message: `'${binding.name}' is not a valid binding`
});
} else if (name !== 'this') {
return component.error(binding, compiler_errors.invalid_binding(binding.name)); return component.error(binding, compiler_errors.invalid_binding(binding.name));
} }
}); });

Loading…
Cancel
Save