$clean
Clean all subscribers to an Observable that contain references to non-existant HTML references.
Note:
$clean
is a member of an AccentObservable object. Refer to the documentation for observables for more information.
#
ParametersThe $clean()
method does need any parameters.
#
ExampleLet's clean the foo
member of a pre-defined Accent context group.
Our Context Group:
<div ac-context="{ foo: 'bar' }" @id="myContext"> <!-- ... --></div>
Cleaning:
Accent.$context("myContext").$clean(); // Cleans the entire context for 'dead' subscriptions