Merge pull request #1642 from ekhaled/gh-1600-ios

fix #1600 for ios
pull/1646/head
Rich Harris 6 years ago committed by GitHub
commit be412d3605
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

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

Loading…
Cancel
Save