Skip to content

Commit 58ef9ca

Browse files
committed
1 parent 0975de5 commit 58ef9ca

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)