Source code

Revision control

Copy as Markdown

Other Tools

balanced-observers
==================
Checks that for every occurrence of ``addObserver`` there is an
occurrence of ``removeObserver`` with the same topic.
Examples of incorrect code for this rule:
-----------------------------------------
.. code-block:: js
Services.obs.addObserver(observer, 'observable');
Examples of correct code for this rule:
---------------------------------------
.. code-block:: js
Services.obs.addObserver(observer, 'observable');
Services.obs.removeObserver(observer, 'observable');