Some minor changes to make it easier to load a machine in the Node environment
This commit is contained in:
parent
5e2073f3ac
commit
d930b31c53
38 changed files with 4216 additions and 3743 deletions
|
|
@ -660,12 +660,26 @@ class Web {
|
|||
}
|
||||
|
||||
/**
|
||||
* getURLParameters(sParms)
|
||||
* getURLParm(sParm)
|
||||
*
|
||||
* @param {string} sParm
|
||||
* @return {string|undefined}
|
||||
*/
|
||||
static getURLParm(sParm)
|
||||
{
|
||||
if (!Web.parmsURL) {
|
||||
Web.parmsURL = Web.parseURLParms();
|
||||
}
|
||||
return Web.parmsURL[sParm];
|
||||
}
|
||||
|
||||
/**
|
||||
* parseURLParms(sParms)
|
||||
*
|
||||
* @param {string} [sParms] containing the parameter portion of a URL (ie, after the '?')
|
||||
* @return {Object} containing properties for each parameter found
|
||||
*/
|
||||
static getURLParameters(sParms)
|
||||
static parseURLParms(sParms)
|
||||
{
|
||||
var aParms = {};
|
||||
if (window) { // an alternative to "if (typeof module === 'undefined')" if require("defines") was used
|
||||
|
|
@ -944,6 +958,8 @@ class Web {
|
|||
}
|
||||
}
|
||||
|
||||
Web.parmsURL = null; // initialized on first call to parseURLParms()
|
||||
|
||||
Web.aPageEventHandlers = {
|
||||
'init': [], // list of window 'onload' handlers
|
||||
'show': [], // list of window 'onpageshow' handlers
|
||||
|
|
|
|||
Loading…
Reference in a new issue