fixed #281 - Casper.evaluate() method signature
`Casper.evaluate()` method signature is now compatible with PhantomJS' one, so you can now write: ```js casper.evaluate(function(a, b) { return a === "foo" && b === "bar"; }, "foo", "bar"); // true ``` The old way to pass arguments has been kept backward compatible in order not to break your existing scripts though: ```js casper.evaluate(function(a, b) { return a === "foo" && b === "bar"; }, {a: "foo", b: "bar"}); // true ```
Showing
4 changed files
with
83 additions
and
9 deletions
-
Please register or sign in to post a comment