blob: b169a520a34391cb176361dbe54a5ef0b1c19f8a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
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');
|