fixed Casper.each() wasn't logging ertror properly
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -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) { | ... | ... |
-
Please register or sign in to post a comment