Sha256: 05c7a9728b73300563e43af918514a7aecfab048d8318ef3873d3cdedbb52227
Contents?: true
Size: 683 Bytes
Versions: 54
Compression:
Stored size: 683 Bytes
Contents
var Params = { names: ["invitation", "page"], parameters: {}, init: function(launchParams) { launchParams = launchParams || {}; Debug.log("Params.init", launchParams); try { if (launchParams) { Params.parameters = launchParams; } else { Params.parameters = {}; } } catch(wtf) { Debug.error(wtf); } }, get: function(name) { Debug.log("Params.get", name); var index, result; try { index = Params.names.indexOf(name); if (index >= 0) { result = Params.parameters["param" + index]; } } catch(wtf) { Debug.error(wtf); } return result; } };
Version data entries
54 entries across 52 versions & 1 rubygems