CS3 JS: Object

CS3 JavaScript

Object

 The base class of all JavaScript objects.

QuickLinks

Object, hasOwnProperty, isPrototypeOf, isValid, propertyIsEnumerable, toLocaleString, toSource, toString, unwatch, valueOf, watch

Properties

PropertyTypeAccessDescription
constructorFunctionreadonly

Points to the constructor function that created this object.

Note that this property is treated as an XML element in the XML class.

prototypeObjectreadonly

Points to the prototype object for this object.

Note that this property is treated as an XML element in the XML class.

reflectReflectionreadonly

Retrieves and returns the Reflection object associated with this method or a property.

Note that this property is treated as an XML element in the XML class.

Methods

Object Object (what:any)
Creates and returns a new object of a given type.

ParameterTypeDescription
what any The object type.

bool hasOwnProperty (name:string)
Reports whether a given property is defined with an instance or within the prototype chain.

ParameterTypeDescription
namestringThe name of the property to check.

bool isPrototypeOf (what:Object)
Checks whether the given object is a prototype of this object.

ParameterTypeDescription
whatObjectThe object to check.

bool isValid (what:Object)
Reports whether an object is still valid.

ParameterTypeDescription
whatObjectThe object to check.

bool propertyIsEnumerable (name:string)
Reports whether a given property is enumerable.

ParameterTypeDescription
namestringThe name of the property to check.

string toLocaleString ()
Creates and returns a string representing this object, localized for the current locale. See toString().

string toSource ()
Creates and returns a string representation of this object.

string toString ()
Creates and returns a string representing this object.

void unwatch (name:string)
Removes the watch function of a property.

ParameterTypeDescription
namestringThe name of the property to unwatch.

Object valueOf ()
Retrieves and returns the primitive value of this object.

void watch (name:string, func:Function)
Adds a watch function to a property, which is called when the value changes.

ParameterTypeDescription
namestringThe name of the property to watch.
funcFunctionThe function to be called when the value of this property changes.

Element of

$.global

$.screens

Function.arguments

Object.prototype

Used in

Function.apply (thisObj:Object, args:Array)

Function.call (thisObj:Object, argument:any)

Object.isValid (what:Object)

Object.isPrototypeOf (what:Object)

Return

Object Object.Object (what:any)

Object Object.valueOf ()

Object XML.defaultSettings ()

Object XML.settings ()

Contents :: Index