ignore
Observation.ignore(fn)
Creates a function that, when called, will prevent observations from being applied.
var fn = Observation.ignore(function(){
// This will be ignored
Observation.add(obj, "prop1");
});
fn();
Observation.trapCount(); // -> 0
Parameters
- fn
{function}
:Any function that contains potential calls to [Observation.add].
Returns
{function}
:
A function that is free of observation side-effects.