Skip to content

Commit 1bf024b

Browse files
author
Marc J. Schmidt
committed
Fixed marcj#14 - resize detection didn't work in chrome anymore.
Chrome 34 introduced a new element property 'onresize' which doesn't work and blows up our 'onresize' detection.
1 parent 7679ad9 commit 1bf024b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ResizeSensor.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@
7979
return;
8080
}
8181

82-
if ('onresize' in element) {
83-
//internet explorer
82+
if ('onresize' in element && 11 > document.documentMode) {
83+
//internet explorer up to 10
8484
if (element.attachEvent) {
8585
element.attachEvent('onresize', function() {
8686
element.resizedAttached.call();

0 commit comments

Comments
 (0)