Skip to content

Commit e633604

Browse files
author
Marc J. Schmidt
committed
new version
1 parent 7f7a1d3 commit e633604

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

javascripts/ResizeSensor.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
;
2-
(function() {
1+
;(function() {
32

43
/**
54
* Class for dimension change detection.
@@ -79,8 +78,8 @@
7978
return;
8079
}
8180

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

0 commit comments

Comments
 (0)