This method is used to unbind interceptors previously bound with Observer.intercept()
.
// Unbind all interceptors bound to the following property name
// regardless of the handler function
Observer.unintercept(obj, type);
// Unbind the interceptor bound with the following handler function
Observer.unintercept(obj, type, originalHandler);
// Unbind the interceptor bound with the following handler function and tags
Observer.unintercept(obj, type, originalHandler, {tags:[...originalTags]});
// Unbind all interceptors bound with the following tags
// regardless of the handler function
Observer.unintercept(obj, type, null, {tags:[...originalTags]});
Parameters
obj
- an object or array.type
- if given, the operation type used onObserver.intercept()
originalHandler
- if given, the original callback function used onObserver.intercept()
params.tags
- if given, the list of tags (in any order) used onObserver.intercept()
Return Value
undefined