Skip to content
This repository was archived by the owner on Dec 17, 2021. It is now read-only.

Latest commit

 

History

History
43 lines (28 loc) · 1.49 KB

unobserve.md

File metadata and controls

43 lines (28 loc) · 1.49 KB

Observer.unobserve()

This method is used to unbind observers previously bound with Observer.observe().

Syntax

// Unbind all observers bound to the following property name
// regardless of the handler function
Observer.unobserve(obj, propertyName);

// Unbind the observer bound with the following handler function
Observer.unobserve(obj, propertyName, originalCallback);

// Unbind the observer bound with the following handler function and tags
Observer.unobserve(obj, propertyName, originalCallback, {tags:[...originalTags]});

// Unbind the observer bound with the following handler function and reflex type 
Observer.unobserve(obj, propertyName, originalCallback, {type:’set’});

// Unbind all observers bound with the following tags
// regardless of the handler function
Observer.unobserve(obj, propertyNames, null, {tags:[...originalTags]});

Parameters

  • obj - an object or array.
  • propertyName/propertyNames - if given, the propertyName or list of propertyNames (in any order) used on Observer.observe()
  • originalCallback - if given, the original callback function used on Observer.observe()
  • params.tags - if given, the list of tags (in any order) used on Observer.observe()

Return Value

undefined

Related Methods