Commit 3b285ca1 3b285ca128ba0984eb3a1a7002d7c91da2b7ea24 by Nicolas Perriault

fixed Casper.each() wasn't logging ertror properly

1 parent 6bab3e19
......@@ -301,7 +301,7 @@
*/
each: function(array, fn) {
if (!isType(array, "array")) {
self.log("each() only works with arrays", "error");
this.log("each() only works with arrays", "error");
return this;
}
(function(self) {
......