add
Signals that an object's property is being observed, so that any functions that are recording observations will see that this object is a dependency.
Observation.add(obj, event)
Signals that an event should be observed. Adds the observable being read to the top of the stack.
Observation.add(obj, "prop1");
Parameters
- obj
{Object}
:An observable object which is being observed.
- event
{String}
:The name of the event (or property) that is being observed.