Commit 218f7652 218f76529eed560fcf32738a5ee33832488079e9 by Nicolas Perriault

added ability to use 'this' instead of self in Casper.each() callback

1 parent f7ae9a5c
......@@ -320,7 +320,7 @@ Casper.prototype = {
}
(function(self) {
array.forEach(function(item, i) {
fn(self, item, i);
fn.call(self, self, item, i);
});
})(this);
return this;
......