Class Index | File Index

Classes


Class M.Observable


Extends M.Object.
The observable knows all observers, mainly views, and pushes updates if necessary.
Defined in: observable.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Field Summary
Field Attributes Field Name and Description
 
List that contains pairs of an observer with an observable.
 
The type of this object.
Method Summary
Method Attributes Method Name and Description
 
attach(observer, observable)
Attach an observer to an observable.
 
detach(observer)
Detach an observer from an observable.
 
Notify all observers that observe the property behind 'key'.
Methods borrowed from class M.Object:
bindToCaller, create, destroy, extend, get, include, set
Class Detail
M.Observable()
Field Detail
{Array|Object} bindingList
List that contains pairs of an observer with an observable. An observer is tightened to one observable, but one observable can have multiple observers.

{String} type
The type of this object.
Method Detail
attach(observer, observable)
Attach an observer to an observable.
Parameters:
{String} observer
The observer.
{String} observable
The observable.

detach(observer)
Detach an observer from an observable.
Parameters:
{String} observer
The observer.

notifyObservers(key)
Notify all observers that observe the property behind 'key'.
Parameters:
{String} key
The key of the property that changed.

Documentation generated by JsDoc Toolkit 2.4.0 on Wed Jan 25 2012 20:41:10 GMT+0100 (MEZ)