lib/assets/javascripts/transponder/response.coffee in transponder-0.9.5 vs lib/assets/javascripts/transponder/response.coffee in transponder-0.9.6

- old
+ new

@@ -1,9 +1,9 @@ class Transponder.Response payload: {} constructor: -> - $(document).on 'ajax:complete', (event, xhr, status) => + $(document).ajaxComplete (event, xhr, status) => if xhr.getResponseHeader('Content-Type') is 'application/transmission' @payload.raw = JSON.parse(@cleanContent(xhr.responseText)) element = @payload.raw[0] event_name = @payload.raw[1] content = @payload.raw[2] \ No newline at end of file