lib/capybara/poltergeist/client/compiled/main.js in poltergeist-1.2.0 vs lib/capybara/poltergeist/client/compiled/main.js in poltergeist-1.3.0

- old
+ new

@@ -18,11 +18,11 @@ Poltergeist.prototype.runCommand = function(command) { var error; this.running = true; try { - return this.browser[command.name].apply(this.browser, command.args); + return this.browser.runCommand(command.name, command.args); } catch (_error) { error = _error; if (error instanceof Poltergeist.Error) { return this.sendError(error); } else { @@ -83,9 +83,26 @@ ObsoleteNode.prototype.toString = function() { return this.name; }; return ObsoleteNode; + +})(Poltergeist.Error); + +Poltergeist.InvalidSelector = (function(_super) { + __extends(InvalidSelector, _super); + + function InvalidSelector(selector) { + this.selector = selector; + } + + InvalidSelector.prototype.name = "Poltergeist.InvalidSelector"; + + InvalidSelector.prototype.args = function() { + return [this.selector]; + }; + + return InvalidSelector; })(Poltergeist.Error); Poltergeist.FrameNotFound = (function(_super) { __extends(FrameNotFound, _super);