Adds update and management functionality to target objects such as arrays, DOM elements, and objects. The Sys.Observer class is based on the Observer pattern. The Sys.Observer class maintains a list of interested dependents (observers) in a separate object (the subject). All methods that are contained in the Sys.Observer class are static. In order to be used with the Sys.Observer class, an object must be an object, array, or DOM element.
Adds an item to the collection in an observable manner.
The array to which an item will be added.
The item to add.
Adds an event handler to the target.
The array to which an event handler will be added.
The event handler.
Adds an observable event handler to the target.
A string that contains the event name.
The added function.
Adds a propertyChanged event handler to the target.
The object to observe.
The function handler to add.
Adds items to the collection in an observable manner.
The array to which items will be added.
The array of items to add.
Begins the process of updating the target object.
The object to update.
Clears the array of its elements in an observable manner.
The array to clear.
Ends the process of updating the target object.
The object being updated.
Inserts an item at the specified index in an observable manner.
The array to which the item is inserted.
A number that represents the index where the item will be inserted.
The item to insert.
Indicates that the target is being updated.
The target object to update.
boolean
true if given target argument is currently updating; otherwise false.
Makes an object directly observable by adding observable methods to it.
The object, array, or DOM element to make observable.
any
The observable object.
Raises the collectionChanged event.
The collection to which an event is raised.
A Sys.CollectionChange object that contains the list of changes that were performed on the collection since the last event.
Raises an observable event on the target.
The target object.
A string that contains the event name.
A Sys.EventArgs object used to pass event argument information.
Raises a propertyChanged notification event.
The object to which an event is raised.
The name of the property that changed.
Removes the first occurrence of an item from the array in an observable manner.
The array to which the item will be removed.
The item to remove.
boolean
true if the item is found in the array. Otherwise false.
Removes the item at the specified index from the array in an observable manner.
The array to which an item is removed.
A number that represents the index of the item to remove.
Removes the collectionChanged event handler from the target.
The array from which the collectionChanged event handler is removed.
The function to remove.
Removes a propertyChanged event handler from the target.
The object to observe.
The event handler to remove.
Sets a property or field on the target in an observable manner. The raisePropertyChanged method is called after the setValue method set the value of the target object property.
The object to which the property is set.
A string that contains the name of the property or field to set.
The value to set.