Commit c81d79d6 c81d79d6040577a36dde1515b31c4bc102250d32 by Nicolas Perriault

Merge pull request #929 from mickaelandrieu/bug-919-native-back

REFS #919 - Refactored casperJS.back() to use native phantomjs goBack()
2 parents 51cb1a11 b873481a
......@@ -233,11 +233,9 @@ utils.inherits(Casper, events.EventEmitter);
Casper.prototype.back = function back() {
"use strict";
this.checkStarted();
return this.then(function _step() {
return this.then(function() {
this.emit('back');
this.evaluate(function _evaluate() {
history.back();
});
this.page.goBack();
});
};
......