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
4c35297b
...
4c35297b526b23cccb5301dda20b8f38ceccea00
authored
2011-11-25 22:11:26 +0100
by
Michael Geers
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
setting the this-context of the callback functions to 'self' to allow coffeescri…
…pt @-shorthand syntax
1 parent
8cf9aaaf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
casper.js
casper.js
View file @
4c35297
...
...
@@ -200,7 +200,7 @@
clearInterval
(
self
.
checker
);
if
(
isType
(
onComplete
,
"function"
))
{
try
{
onComplete
(
self
);
onComplete
.
call
(
self
,
self
);
}
catch
(
err
)
{
self
.
log
(
"could not complete final step: "
+
err
,
"error"
);
}
...
...
@@ -634,7 +634,7 @@
},
this
.
options
.
stepTimeout
,
this
,
new
Date
().
getTime
(),
this
.
step
);
}
try
{
stepResult
=
step
(
this
);
stepResult
=
step
.
call
(
this
,
this
);
}
catch
(
e
)
{
if
(
this
.
options
.
faultTolerant
)
{
this
.
log
(
"Step error: "
+
e
,
"error"
);
...
...
Please
register
or
sign in
to post a comment