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
53af6efc
...
53af6efc1361b2ba48d0104770a7c72d99a633e2
authored
2011-09-06 00:13:03 +0200
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
removed Casper#thenIf method, broken and not really useful
1 parent
133310d8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
18 deletions
casper.js
casper.js
View file @
53af6ef
...
...
@@ -373,24 +373,6 @@
},
/**
* Adds a new navigation step depending on a condition to be evaluated
* within current page DOM. Dies on precondition failure with an
* optional message to be added to the results.errors Array.
*
* @param function condition An expression to be evaluated as a Boolean
* @param function then The next step to add if precondition succeeded
* @param string
*/
thenIf
:
function
(
condition
,
then
,
message
)
{
return
this
.
then
(
function
(
self
)
{
if
(
self
.
evaluate
(
condition
)
===
true
)
{
return
self
.
then
(
then
);
}
return
self
.
die
(
message
);
});
},
/**
* Adds a new navigation step for opening the provided location.
*
* @param string location The URL to load
...
...
Please
register
or
sign in
to post a comment