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
11c2f674
...
11c2f6741cba4655ea7bb08388d8485f3424af7d
authored
2011-12-18 12:19:45 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
called script name is now removed from phantom.casperArgs.args array
1 parent
3b285ca1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
casper.js
casper.js
View file @
11c2f67
...
...
@@ -100,6 +100,10 @@
phantom
.
exit
(
1
);
}
// filter out the called script name from casper args
phantom
.
casperArgs
.
args
=
phantom
.
casperArgs
.
args
.
filter
(
function
(
arg
)
{
return
arg
!==
phantom
.
casperScript
;
});
phantom
.
injectJs
(
phantom
.
casperScript
);
}
})(
phantom
);
...
...
Please
register
or
sign in
to post a comment