lib/capybara/poltergeist/client/agent.coffee in poltergeist-0.5.0 vs lib/capybara/poltergeist/client/agent.coffee in poltergeist-0.6.0
- old
+ new
@@ -6,13 +6,10 @@
@nodes = {}
@windows = []
this.pushWindow(window)
externalCall: (name, arguments) ->
- try
- { value: this[name].apply(this, arguments) }
- catch error
- { error: error.toString() }
+ { value: this[name].apply(this, arguments) }
pushWindow: (new_window) ->
@windows.push(new_window)
@window = new_window