Object
API documention for the Prototype Object.
The base prototype for all prototypes. Methods from this prototype are available to all prototypes.
Source code
Usage
var instance = new Object(args);
...
instance.method(args);
Index
Constructor
var o = new Object();
Variables
-- No Variables --
Getters & Setters
-- No Getters & Setters --
Methods
addMember
Static
Adds a member to a prototype and all new objects created from that prototype. Values for "signatureConfig" are "readOnly", "static", "indexerGet" and "indexerSet".
create
Static
Creates an instance of a prototype (either by name or reference to the prototype), "args" are the constructor arguments for the prototype.
Signatures:
Static
Adds a member to a prototype and all new objects created from that prototype. Values for "signatureConfig" are "readOnly", "static", "indexerGet" and "indexerSet".
Return: void
Arguments: string memberName, [any defaultValue], [string[] signatureConfig]
Usage: Object.addMember(memberName, [defaultValue], [signatureConfig]);
create
Static
Creates an instance of a prototype (either by name or reference to the prototype), "args" are the constructor arguments for the prototype.
Signatures:
Return: any
Arguments: string prototypeName, any[] ...args
Usage: var result = Object.create(prototypeName, ...args);
Return: any
Arguments: object prototype, any[] ...args
Usage: var result = Object.create(prototype, ...args);
Indexers
-- No Indexers --