Javascript Object
General
Methods
- assign(dest[,src[,src1 ...])
Assign object(s) properties to another object.
Parameters:
dest Destination object. Does nothing if not an object.
src Source object. Does nothing if not an object.
src1 ... Other source object(s). Does nothing if not an object.
Return:
Given dest data.
- assignProps(dest,src[,flags,props,prefix,addPrefix])
Assign object properties to another object.
Parameters:
dest Destination object. Does nothing if not an object.
src Source object. Does nothing if not an object.
flags Flags controlling the operation. See Object properties for description.
props
- keys([obj])
Retrieve the list of of the calling script.
Parameters:
obj Object to list keys for. List calling script's global data object keys if this parameter is not given.
Return:
Array of key values. null if given object has no properties (e.g. obj=undefined)
- global()
Retrieve the context (data) of the calling script.
Return:
Object containing all global data of the calling script.