Class M.DeviceSwitch
Extends
M.Object.
M.DeviceSwitch defines a prototype for using device specific objects within
an application developed with The M-Project.
Defined in: device_switch.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Field Attributes | Field Name and Description |
---|---|
The name of the current device.
|
|
The type of this object.
|
Method Attributes | Method Name and Description |
---|---|
s(key)
This method returns the specialized string for the given key based on
the current device/environment.
|
Field Detail
{String}
device
The name of the current device.
{String}
type
The type of this object.
Method Detail
{String}
s(key)
This method returns the specialized string for the given key based on
the current device/environment.
- Parameters:
- {String} key
- The key to the specialized string.
- Returns:
- {String} The specialized string based on the current device/environment.