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) { ...@@ -612,12 +612,9 @@ Casper.prototype.evaluate = function evaluate(fn, context) {
612 } else { 612 } else {
613 context = [context]; 613 context = [context];
614 } 614 }
615 } else if (arguments.length > 2) { 615 } else {
616 // phantomjs-style signature 616 // phantomjs-style signature
617 context = [].slice.call(arguments).slice(1); 617 context = [].slice.call(arguments).slice(1);
618 } else {
619 // old casperjs method signature
620 context = utils.objectValues(context);
621 } 618 }
622 return this.page.evaluate.apply(this.page, [fn].concat(context)); 619 return this.page.evaluate.apply(this.page, [fn].concat(context));
623 }; 620 };
......