Namespace BTM.Util
Utility Functions
Defined in: util.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
| Method Attributes | Method Name and Description |
|---|---|
| <static> |
BTM.Util.compareURLs(url1, url1, compareHash)
Compare two URL Strings or Location objects
|
| <static> |
BTM.Util.getHashLoaders(hash, split)
Get an Array of the Hash Loaders in the address
|
Method Detail
<static>
{Boolean}
BTM.Util.compareURLs(url1, url1, compareHash)
Compare two URL Strings or Location objects
- Parameters:
- {Object|String} url1
- First URL String or Location object (such as window.location)
- {Object|String} url1
- Second URL String or Location object (such as window.location)
- {Boolean} compareHash Optional, Default: false
- flag to also check matching hash (fragment identifier) properties
- Returns:
- {Boolean} whether the two URLs match
<static>
{String[]}
BTM.Util.getHashLoaders(hash, split)
Get an Array of the Hash Loaders in the address
- Parameters:
- {String} hash Optional, Default: window.location.hash
- the String to get Hash Loaders from
- {String} split Optional, Default: ','
- the character used to seperate Hash Loaders
- Returns:
- {String[]} the extracted Hash Loaders