Commit 49d45064 49d450645c42773844db198387115c98faf8936b by Nicolas Perriault

let me quit drunk-coding.

1 parent 1d997044
......@@ -612,12 +612,9 @@ Casper.prototype.evaluate = function evaluate(fn, context) {
} else {
context = [context];
}
} else if (arguments.length > 2) {
} else {
// phantomjs-style signature
context = [].slice.call(arguments).slice(1);
} else {
// old casperjs method signature
context = utils.objectValues(context);
}
return this.page.evaluate.apply(this.page, [fn].concat(context));
};
......