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 @@ ...@@ -373,24 +373,6 @@
373 }, 373 },
374 374
375 /** 375 /**
376 * Adds a new navigation step depending on a condition to be evaluated
377 * within current page DOM. Dies on precondition failure with an
378 * optional message to be added to the results.errors Array.
379 *
380 * @param function condition An expression to be evaluated as a Boolean
381 * @param function then The next step to add if precondition succeeded
382 * @param string
383 */
384 thenIf: function(condition, then, message) {
385 return this.then(function(self) {
386 if (self.evaluate(condition) === true) {
387 return self.then(then);
388 }
389 return self.die(message);
390 });
391 },
392
393 /**
394 * Adds a new navigation step for opening the provided location. 376 * Adds a new navigation step for opening the provided location.
395 * 377 *
396 * @param string location The URL to load 378 * @param string location The URL to load
......