Skip to content

Commit 60bb435

Browse files
author
Marc J. Schmidt
committed
Merge pull request marcj#22 from KyleAMathews/fix-21
Correct check for array fixes marcj#21
2 parents 0975de5 + 58ef9ca commit 60bb435

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
@@ -128,7 +128,7 @@
128128
});
129129
}
130130

131-
if ('array' === typeof element
131+
if ("[object Array]" === Object.prototype.toString.call(element)
132132
|| ('undefined' !== typeof jQuery && element instanceof jQuery) //jquery
133133
|| ('undefined' !== typeof Elements && element instanceof Elements) //mootools
134134
) {
@@ -141,4 +141,4 @@
141141
}
142142
}
143143

144-
})();
144+
})();

0 commit comments

Comments
 (0)