Commit 53af6efc 53af6efc1361b2ba48d0104770a7c72d99a633e2 by Nicolas Perriault

removed Casper#thenIf method, broken and not really useful

1 parent 133310d8
Showing 1 changed file with 0 additions and 18 deletions
......@@ -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
......