static
class AFrame
The AFrame base namespace. Provides some useful utility functions. The most commonly used functions are Class and create.
Methods
| Methods | Returns | Description |
|---|---|---|
array(
itemToCheck
)
|
boolean
|
↑
Check whether an item is an array
Parameters:
Returns: |
create(
constructor, config
)
|
void
|
↑
deprecated
Parameters:
|
defined(
itemToCheck
)
|
boolean
|
↑
Check whether an item is defined
Parameters:
Returns: |
extendsFrom(
subClass, superClass
)
|
boolean
|
↑
Checks whether the subClass is a sub-class of superClass, as is done using AFrame.extend or AFrame.Class.
Parameters:
Returns: |
func(
itemToCheck
)
|
boolean
|
↑
Check whether an item is a function
Parameters:
Returns: |
getUniqueID(
)
|
id
|
↑
Get a unique ID
Returns:
|
log(
message
)
|
void
|
↑
If the console is available, log a message.
Parameters:
|
mixin(
toExtend, mixin
)
|
void
|
↑
extend an object with the members of another object.
Parameters:
|
remove(
object, key
)
|
void
|
↑
Remove an item from an object freeing the reference to the item.
Parameters:
|
string(
itemToCheck
)
|
boolean
|
↑
Check whether an item is a string
Parameters:
Returns: |