This repository has been archived by the owner on May 29, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Unregister watches on the parent scope #5242
Comments
I was wondering about watchers on the parent throughout several components - they probably should be garbage collected on $destroy. Should be an easy PR (or few PRs for the other components where this is happening) if you'd like to try your hand at it. |
I will try to get to this tonight or tomorrow. |
deeg
added a commit
to deeg/bootstrap
that referenced
this issue
Jan 15, 2016
deeg
added a commit
to deeg/bootstrap
that referenced
this issue
Jan 15, 2016
deeg
added a commit
to deeg/bootstrap
that referenced
this issue
Jan 15, 2016
wesleycho
pushed a commit
to wesleycho/bootstrap
that referenced
this issue
Jan 15, 2016
wesleycho
pushed a commit
to wesleycho/bootstrap
that referenced
this issue
Jan 15, 2016
wesleycho
pushed a commit
to wesleycho/bootstrap
that referenced
this issue
Jan 16, 2016
wesleycho
pushed a commit
to wesleycho/bootstrap
that referenced
this issue
Jan 16, 2016
thanks! |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Several watches are registered on the parent scope in the datepicker.js. Those watches are going to be unregistered the moment the parent scope will be destroyed. Wouldn't it be wiser to unregister them when the directive's scope is being destroyed?
The text was updated successfully, but these errors were encountered: