Sha256: 4614375022a179b5881438136f8c260204eec1d5ac53bb60d37bb1be9cb7e698

Contents?: true

Size: 544 Bytes

Versions: 12

Compression:

Stored size: 544 Bytes

Contents

var Params = {
  names: ["invitation", "page"],
  parameters: {},
  
  init: function(launchParams) {
    launchParams = launchParams || {};
    Debug.log("Params.init", launchParams);
    
    if (launchParams) {
      Params.parameters = launchParams;
    } else {
      Params.parameters = {};
    }
  },
  
  get: function(name) {
    Debug.log("Params.get", name);
    var index, result;

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
ymdp-0.8.5 lib/ymdp/javascripts/jquery/params.js
ymdp-0.8.4 lib/ymdp/javascripts/jquery/params.js
ymdp-0.8.3 lib/ymdp/javascripts/jquery/params.js
ymdp-0.8.2 lib/ymdp/javascripts/jquery/params.js
ymdp-0.8.1 lib/ymdp/javascripts/jquery/params.js
ymdp-0.8.0 lib/ymdp/javascripts/jquery/params.js
ymdp-0.7.7 lib/ymdp/javascripts/jquery/params.js
ymdp-0.7.6 lib/ymdp/javascripts/jquery/params.js
ymdp-0.7.5 lib/ymdp/javascripts/jquery/params.js
ymdp-0.7.4 lib/ymdp/javascripts/jquery/params.js
ymdp-0.7.3 lib/ymdp/javascripts/jquery/params.js
ymdp-0.7.2 lib/ymdp/javascripts/jquery/params.js