| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
| Method Summary | |
|---|---|
|
deferError(error)
Throws the error in a setTimeout 1ms. |
|
extend(subclass, superclass, mixin)
Prototype inheritance. |
|
getById(el)
Creational method meant for being cross-cut. |
|
getByNode(el)
Creational method meant for being cross-cut. |
|
getFunctionName(fun)
Tries to get a name of a function object, returns "" if anonymous. |
Object
|
mixin(r, s)
Shallow copy of properties; does not look up prototype chain. |
Package
|
namespace(s)
creates a namespace split on ". |
|
newApply(fun, args)
|
|
toString()
undocumented |
| Method Detail |
|---|
deferError(error)
Error error - that occurred.
extend(subclass, superclass, mixin)
Object subclass
Object superclass
Object mixin - If present, mixin's own properties are copied to receiver
using APE.mixin(subclass.prototoype, superclass.prototype).
getById(el)
getById must be assigned to a function constructor
that accepts an HTMLElement's id for
its first argument.
HTMLElement el - An element that has an id.
new this(id [,args...])
getByNode(el)
HTMLElement el - An element. If el does not have
an ID, then an ID will be automatically generated, based on the
constructor's (this) identifier, or, If this is anonymous, "APE".
{new this(el [,args...])}
getFunctionName(fun)
fun
Object mixin(r, s)
Object r - the receiver of properties.
Object s - the supplier of properties.
Accounts for JScript DontEnum bug for valueOf and toString.
Object r the receiver.
Package namespace(s)
String s - the namespace. "foo.bar" would create a namespace foo.bar, but only
if that namespace did not exist.
Package the namespace.
newApply(fun, args)
Function fun - constructor to be invoked.
Array args - arguments to pass to the constructor.
Instantiates a constructor and uses apply().
toString()