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
f7787f50
...
f7787f50ea8042e245de75b4e96eac780efc6f57
authored
2011-12-08 23:46:48 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
removed the obligation to add an empty step if start() would just suffice
1 parent
d8d08333
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
casper.js
casper.js
View file @
f7787f5
...
...
@@ -703,11 +703,9 @@
this
.
options
.
onPageInitialized
.
call
(
this
,
this
.
page
);
}
if
(
isType
(
location
,
"string"
)
&&
location
.
length
>
0
)
{
if
(
isType
(
then
,
"function"
))
{
return
this
.
open
(
location
).
then
(
then
);
}
else
{
return
this
.
open
(
location
);
}
return
this
.
thenOpen
(
location
,
isType
(
then
,
"function"
)
?
then
:
this
.
createStep
(
function
(
self
)
{
self
.
log
(
"start page is loaded"
,
"debug"
);
}));
}
return
this
;
},
...
...
Please
register
or
sign in
to post a comment