Commit 3b285ca1 3b285ca128ba0984eb3a1a7002d7c91da2b7ea24 by Nicolas Perriault

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

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