 emit = (data) ->
   eventFactory('teamsnap-sdk-event', data)
 
-requestResponse = (method, xhr) =>
+requestResponse = (method, xhr) ->
   data = xhr.data
   eventData = null
 

      # (this shouldn't really happen very often)
      eventData = buildEventDataFromCollection(response.collection)
      emit(eventData) if eventData

  else
    eventData = buildEventDataFromCollection(data.collection)
    emit(eventData) if eventData

types = require './types'

camelize = (str) ->
  str.replace /[-_]+(\w)/g, (_, char) ->
    char.toUpperCase()

# Detect customEvent constructor support
hasCustomEventConstructor = (->
  try
