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
1b7e6c85
...
1b7e6c85ed04b3df870530b7fd1bf6cc7620e9c0
authored
2011-12-18 14:26:59 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed onStepTimeout callback couldn't be called properly
1 parent
d7d236bd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
lib/casper.js
lib/casper.js
View file @
1b7e6c8
...
...
@@ -647,7 +647,7 @@
if
(
isType
(
this
.
options
.
stepTimeout
,
"number"
)
&&
this
.
options
.
stepTimeout
>
0
)
{
var
stepTimeoutCheckInterval
=
setInterval
(
function
(
self
,
start
,
stepNum
)
{
if
(
new
Date
().
getTime
()
-
start
>
self
.
options
.
stepTimeout
)
{
if
(
self
.
step
==
stepNum
+
1
)
{
if
(
self
.
step
==
stepNum
)
{
if
(
isType
(
self
.
options
.
onStepTimeout
,
"function"
))
{
self
.
options
.
onStepTimeout
.
call
(
self
,
self
);
}
else
{
...
...
Please
register
or
sign in
to post a comment