Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
casperjs
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
49d45064
...
49d450645c42773844db198387115c98faf8936b
authored
2012-11-22 11:11:13 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
let me quit drunk-coding.
1 parent
1d997044
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
4 deletions
modules/casper.js
modules/casper.js
View file @
49d4506
...
...
@@ -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
));
};
...
...
Please
register
or
sign in
to post a comment