let me quit drunk-coding.
Showing
1 changed file
with
1 additions
and
4 deletions
... | @@ -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 | }; | ... | ... |
-
Please register or sign in to post a comment