Sha256: c0520c7cfece817ea342bdb54d8c26d85c6a81d74b04a07a7fcbeca4c690c038

Contents?: true

Size: 469 Bytes

Versions: 27

Compression:

Stored size: 469 Bytes

Contents

window.Params = 
  names: ["invitation", "page", "cc"]
  parameters: {}
  
  init: (launchParams) ->
    launchParams = launchParams || {}
    Debug.log("Params.init", launchParams)
    
    if launchParams
      Params.parameters = launchParams
    else
      Params.parameters = {}
  
  get: (name) ->
    Debug.log("Params.get", name)

    index = $.inArray(name, Params.names)
  
    if index >= 0
      result = Params.parameters["param" + index]
      
    result

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
ymdp-1.4.7 lib/ymdp/javascripts/jquery/params.js.coffee
ymdp-1.4.6 lib/ymdp/javascripts/jquery/params.js.coffee
ymdp-1.4.5 lib/ymdp/javascripts/jquery/params.js.coffee
ymdp-1.4.4 lib/ymdp/javascripts/jquery/params.js.coffee
ymdp-1.4.3 lib/ymdp/javascripts/jquery/params.js.coffee
ymdp-1.4.2 lib/ymdp/javascripts/jquery/params.js.coffee
ymdp-1.4.1 lib/ymdp/javascripts/jquery/params.js.coffee
ymdp-1.4.0 lib/ymdp/javascripts/jquery/params.js.coffee
ymdp-1.3.4 lib/ymdp/javascripts/jquery/params.js.coffee
ymdp-1.3.3 lib/ymdp/javascripts/jquery/params.js.coffee
ymdp-1.3.2 lib/ymdp/javascripts/jquery/params.js.coffee
ymdp-1.3.1 lib/ymdp/javascripts/jquery/params.js.coffee
ymdp-1.3.0 lib/ymdp/javascripts/jquery/params.js.coffee
ymdp-1.2.0 lib/ymdp/javascripts/jquery/params.js.coffee
ymdp-1.1.0 lib/ymdp/javascripts/jquery/params.js.coffee
ymdp-1.0.1 lib/ymdp/javascripts/jquery/params.js.coffee
ymdp-1.0.0 lib/ymdp/javascripts/jquery/params.js.coffee
ymdp-0.10.2 lib/ymdp/javascripts/jquery/params.js.coffee
ymdp-0.10.1 lib/ymdp/javascripts/jquery/params.js.coffee
ymdp-0.10.0 lib/ymdp/javascripts/jquery/params.js.coffee