ModelOld
this class was deprecated. Use Model.js and associated functions instead.
Base class for all models
Member Summary
Public Members | ||
public |
this member was deprecated. Checks if an observer exists in the observer list.
|
|
public |
this member was deprecated. Adds (subscribes) an observer to the calling child/subject to the subscription list.
|
|
public |
unsubscribe(observer: Object): * this member was deprecated. Removes (unsubscribes) an observer from the calling child/subject's subscription list.
|
Private Members | ||
private |
this member was deprecated. Private method to only be used by classes that extend Model.
Creates an observer list for the child that classes can subscribe to.
|
|
private |
this member was deprecated. Private method to only be used by classes that extend Model.
Notifies a specific subscriber/observer of the calling child.
|
|
private |
_notifyAll: * this member was deprecated. Private method to only be used by classes that extend Model.
Notifies all subscribers/observers of the calling child.
This function forces the presenter to fetch any data from the model itself.
|
Public Members
public exists(objectClass: Object): Boolean: * source
this member was deprecated. Checks if an observer exists in the observer list.
public subscribe(observer: Object): * source
this member was deprecated. Adds (subscribes) an observer to the calling child/subject to the subscription list.
public unsubscribe(observer: Object): * source
this member was deprecated. Removes (unsubscribes) an observer from the calling child/subject's subscription list.
Private Members
private _createObserverList: * source
this member was deprecated. Private method to only be used by classes that extend Model.
Creates an observer list for the child that classes can subscribe to.
private _notify(observer: Object, message: Object): Boolean: * source
this member was deprecated. Private method to only be used by classes that extend Model.
Notifies a specific subscriber/observer of the calling child.
Return:
Boolean | true: if the observer exists, a message will be sent; false: if the observer does not exist, no message sent |
private _notifyAll: * source
this member was deprecated. Private method to only be used by classes that extend Model.
Notifies all subscribers/observers of the calling child.
This function forces the presenter to fetch any data from the model itself.