lib/capybara/poltergeist/client/compiled/main.js in poltergeist-1.3.0 vs lib/capybara/poltergeist/client/compiled/main.js in poltergeist-1.4.0
- old
+ new
@@ -3,11 +3,10 @@
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
Poltergeist = (function() {
function Poltergeist(port, width, height) {
var that;
-
this.browser = new Poltergeist.Browser(this, width, height);
this.connection = new Poltergeist.Connection(this, port);
that = this;
phantom.onError = function(message, stack) {
return that.onError(message, stack);
@@ -15,10 +14,9 @@
this.running = false;
}
Poltergeist.prototype.runCommand = function(command) {
var error;
-
this.running = true;
try {
return this.browser.runCommand(command.name, command.args);
} catch (_error) {
error = _error;