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
a56aadfe
...
a56aadfef896b0768c34f891144db1cf31300f86
authored
2011-11-23 22:28:54 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
added a supplementary type check to Casper#createStep()
1 parent
f1502845
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
casper.js
casper.js
View file @
a56aadf
...
...
@@ -235,6 +235,9 @@
* @return Function The final step function
*/
createStep
:
function
(
fn
,
options
)
{
if
(
!
isType
(
fn
,
"function"
))
{
throw
"createStep(): a step definition must be a function"
;
}
fn
.
options
=
isType
(
options
,
"object"
)
?
options
:
{};
return
fn
;
},
...
...
Please
register
or
sign in
to post a comment