pull/1647/head
Rich Harris 7 years ago
parent be412d3605
commit b6c3749d99

@ -22,7 +22,6 @@ export default function error(message: string, props: {
start: number, start: number,
end?: number end?: number
}) { }) {
console.error(props);
const error = new CompileError(message); const error = new CompileError(message);
error.name = props.name; error.name = props.name;

@ -43,7 +43,7 @@ function addResizeListener(element, fn) {
return { return {
cancel: () => { cancel: () => {
win && win.removeEventListener && win.removeEventListener('resize', fn); win && win.removeEventListener('resize', fn);
element.removeChild(object); element.removeChild(object);
} }
}; };

Loading…
Cancel
Save