Sha256: 7152486eeb330f2cfd90349b0d6c7ace1d37634011db996b5b5ce6e67a4b5b2f

Contents?: true

Size: 333 Bytes

Versions: 23

Compression:

Stored size: 333 Bytes

Contents

class Transponder.Request
  url: ''

  constructor: ->
    $(document).on 'ajax:beforeSend', (event, xhr, settings) =>
      @url = ''
      @url = settings.url

  objectifyParams: ->
    if @url.split('?').length is 2
      JSON.parse('{"' + @url.split('?')[1].replace(/&/g, "\",\"").replace(/\=/g,"\":\"") + '"}')
    else
      {}

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
transponder-0.0.6 lib/assets/javascripts/transponder/request.coffee
transponder-0.0.5 lib/assets/javascripts/transponder/request.coffee
transponder-0.0.1 vendor/assets/javascripts/request.coffee