Clear Up
SharpKit Reference

JsObjectBase Class

Namespace: SharpKit.JavaScript

Base Types

System.Object

Constructors

Name Description
JsObjectBase()

Properties

Name Description
constructor

Methods

Name Description
Equals(object)
Equals(object, object)
GetHashCode()
GetType()
hasOwnProperty(JsString) Returns a Boolean value indicating whether an object has a property with the specified name.
isPrototypeOf(object) Returns a Boolean value indicating whether an object exists in another object's prototype chain.
ReferenceEquals(object, object)
toString() Returns a JsString representation of an object.
ToString()
unwatch(JsString) Removes a watchpoint set with the watch method The JavaScript debugger has functionality similar to that provided by this method, as well as other debugging options. For information on the debugger, see Venkman. By default, this method is inherited by every object descended from Object.
valueOf() Returns the primitive value of the specified object. The required object reference is any intrinsic JScript object. The valueOf method is defined differently for each intrinsic JScript object. Object Return Value Array Returns the array instance. Boolean The Boolean value. Date The stored time value in milliseconds since midnight, January 1, 1970 UTC. Function The function itself. Number The numeric value. Object The object itself. This is the default. String The JsString value. The Math and Error objects do not have a valueOf method.
watch(JsString, Action) Watches for a property to be assigned a value and runs a function when that occurs. Watches for assignment to a property named prop in this object, calling handler(prop, oldval, newval) whenever prop is set and storing the return value in that property. A watchpoint can filter (or nullify) the value assignment, by returning a modified newval (or by returning oldval). If you delete a property for which a watchpoint has been set, that watchpoint does not disappear. If you later recreate the property, the watchpoint is still in effect. To remove a watchpoint, use the unwatch method. By default, the watch method is inherited by every object descended from Object. The JavaScript debugger has functionality similar to that provided by this method, as well as other debugging options. For information on the debugger, see Venkman. In NES 3.0 and 4.x, handler is called from native code as well as assignments in script. In Firefox, handler is only called from assignments in script, not from native code. For example, window.watch('location', myHandler) will not call myHandler if the user clicks a link to an anchor within the current document. However, window.location += '#myAnchor' will call myHandler:
© Copyright 2005-2011 SharpKit. All rights reserved.