app/assets/javascripts/try_api/application.js.coffee in try_api-0.0.15 vs app/assets/javascripts/try_api/application.js.coffee in try_api-0.0.16

- old
+ new

@@ -114,11 +114,15 @@ $.each menu_item.methods, ()-> method = this method.pending = false method.response_handler = (data, status, headers, config) -> method.pending = false + try # TODO catch different types of response + data = JSON.stringify(data, null, 2) + catch e + method.response = - data: JSON.stringify(data, null, 2) + data: data headers: JSON.stringify(config.headers, null, 2) status: status method.submit = -> method.pending = true