Commit 80f7d479 80f7d4799b7e7965bd2a91aa7c4e17123ab8c20f by Nicolas Perriault

use of isType() in Casper.each

1 parent 8723ef39
......@@ -292,7 +292,7 @@
* @return Casper
*/
each: function(array, fn) {
if (array.constructor !== Array) {
if (!isType(array, "array")) {
self.log("each() only works with arrays", "error");
return this;
}
......