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-2.0.0 lib/assets/javascripts/transponder/request.coffee
transponder-1.0.0 lib/assets/javascripts/transponder/request.coffee
transponder-0.10.4 lib/assets/javascripts/transponder/request.coffee
transponder-0.10.2 lib/assets/javascripts/transponder/request.coffee
transponder-0.10.1 lib/assets/javascripts/transponder/request.coffee
transponder-0.9.6 lib/assets/javascripts/transponder/request.coffee
transponder-0.9.5 lib/assets/javascripts/transponder/request.coffee
transponder-0.9.4 lib/assets/javascripts/transponder/request.coffee
transponder-0.9.3 lib/assets/javascripts/transponder/request.coffee
transponder-0.9.2 lib/assets/javascripts/transponder/request.coffee
transponder-0.9.0 lib/assets/javascripts/transponder/request.coffee
transponder-0.8.2 lib/assets/javascripts/transponder/request.coffee
transponder-0.1.5 lib/assets/javascripts/transponder/request.coffee
transponder-0.1.4 lib/assets/javascripts/transponder/request.coffee
transponder-0.1.3 lib/assets/javascripts/transponder/request.coffee
transponder-0.1.2 lib/assets/javascripts/transponder/request.coffee
transponder-0.1.1 lib/assets/javascripts/transponder/request.coffee
transponder-0.1.0 lib/assets/javascripts/transponder/request.coffee
transponder-0.0.8 lib/assets/javascripts/transponder/request.coffee
transponder-0.0.7 lib/assets/javascripts/transponder/request.coffee