Skip to content

Commit 517613e

Browse files
authored
Merge pull request #288 from stevesioli/master
Fix misspelling of `detachEvent`
2 parents c124e54 + b838878 commit 517613e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

polyfill/intersection-observer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -821,8 +821,8 @@ function removeEvent(node, event, fn, opt_useCapture) {
821821
if (typeof node.removeEventListener == 'function') {
822822
node.removeEventListener(event, fn, opt_useCapture || false);
823823
}
824-
else if (typeof node.detatchEvent == 'function') {
825-
node.detatchEvent('on' + event, fn);
824+
else if (typeof node.detachEvent == 'function') {
825+
node.detachEvent('on' + event, fn);
826826
}
827827
}
828828

0 commit comments

Comments
 (0)