|
|
@ -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);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|