lib/capybara/poltergeist/client/compiled/browser.js in poltergeist-1.8.0 vs lib/capybara/poltergeist/client/compiled/browser.js in poltergeist-1.8.1
- old
+ new
@@ -61,11 +61,11 @@
}
_this.setModalMessage(msg);
return response;
};
})(this);
- return this.page.onPageCreated = (function(_this) {
+ this.page.onPageCreated = (function(_this) {
return function(newPage) {
var page;
page = new Poltergeist.WebPage(newPage);
page.handle = "" + (_this._counter++);
return _this.pages.push(page);
@@ -90,11 +90,11 @@
return console.log("poltergeist [" + (new Date().getTime()) + "] " + message);
}
};
Browser.prototype.setModalMessage = function(msg) {
- return this.processed_modal_messages.push(msg);
+ this.processed_modal_messages.push(msg);
};
Browser.prototype.add_extension = function(extension) {
this.currentPage.injectExtension(extension);
return this.current_command.sendResponse('success');
@@ -121,10 +121,10 @@
return this.current_command.sendResponse({
status: 'success'
});
} else {
command = this.current_command;
- return this.currentPage.waitState('default', (function(_this) {
+ this.currentPage.waitState('default', (function(_this) {
return function() {
if (_this.currentPage.statusCode === null && _this.currentPage.status === 'fail') {
return command.sendError(new Poltergeist.StatusFailError(url));
} else {
return command.sendResponse({