Skip to content

Commit ef7a324

Browse files
committed
dont pass element to handler
1 parent 20a0ef9 commit ef7a324

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ export default (element, handler) => {
44
let frame = document.createElement('iframe');
55
frame.style.cssText = CSS;
66
element.appendChild(frame);
7-
frame.contentWindow.onresize = () => {
8-
handler(element);
9-
};
7+
frame.contentWindow.onresize = () => { handler(); };
108
return frame;
119
}

0 commit comments

Comments
 (0)