fix resize listener bug for ios re: #1600

pull/1642/head
ekhaled 6 years ago
parent 98212a0699
commit 87445230b1

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

Loading…
Cancel
Save