Namespace BTM
Core BTM Namespace Object
Current Supported browsers: Firefox version 2+, Safari version 3+, Opera version 9.3+, Internet Explorer version 6+
Defined in: btm.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
| Field Attributes | Field Name and Description |
|---|---|
| <static> |
BTM.library
An object identifying the external Library BTM uses (an object with 'name' and 'version' properties), or false if no supported Library detected
|
| <static> |
BTM.observe
Convenience shortcut to BTM.Event.oserve
|
| <static> |
BTM.stopObserving
Convenience shortcut to BTM.Event.stopObserving
|
| <static> |
BTM.version
The BTM Library version number
|
| Method Attributes | Method Name and Description |
|---|---|
| <static> |
BTM.$()
Convenience shortcut to BTM.DOM.$
|
| <static> |
BTM.$$()
Convenience shortcut to BTM.DOM.$$
|
| <static> |
BTM.error(mesage, object)
Write an error message to the console
|
| <static> |
BTM.loadOption(name, defaultVal)
Load an option into BTM.options from the query string that referenced the BTM JS file.
|
| <static> |
BTM.log(mesage, object)
Write a log message to the console
|
| <static> |
BTM.self(value)
Identity function, returns whatever is passed to it
|
| <static> |
BTM.selfProp(value, name)
Special-Use Identity function, returns the specified member from whatever is passed to it
|
Field Detail
<static>
BTM.library
An object identifying the external Library BTM uses (an object with 'name' and 'version' properties), or false if no supported Library detected
<static>
BTM.observe
Convenience shortcut to BTM.Event.oserve
Defined in: event.js.
Defined in: event.js.
<static>
BTM.stopObserving
<static>
BTM.version
The BTM Library version number
Method Detail
<static>
BTM.$()
- See:
- BTM.DOM.$
<static>
BTM.$$()
- See:
- BTM.DOM.$$
<static>
BTM.error(mesage, object)
Write an error message to the console
- Parameters:
- mesage
- the message to write to the console
- object
<static>
BTM.loadOption(name, defaultVal)
Load an option into BTM.options from the query string that referenced the BTM JS file. Boolean or Number values represented as strings will be converted to their native format
BTM.loadOption('runMappings', true); // Loads the option "runMappings", with a default value of true
- Parameters:
- {String} name
- the name of the variable to set
- {Mixed} defaultVal
- the default value for the option (used if a value can't be found in the query string)
<static>
BTM.log(mesage, object)
Write a log message to the console
- Parameters:
- mesage
- the message to write to the console
- object
<static>
BTM.self(value)
Identity function, returns whatever is passed to it
- Parameters:
- value
- value to be returned
- Returns:
- the original argument passed
- See:
<static>
BTM.selfProp(value, name)
Special-Use Identity function, returns the specified member from whatever is passed to it
- Parameters:
- value
- value to get member from
- name
- the member to return
- Returns:
- the the specified value from the original argument passed
- See: