Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Destroying scope on tooltip appended to body causes error #1346

Closed
tak-amboss opened this issue Dec 4, 2013 · 0 comments
Closed

Destroying scope on tooltip appended to body causes error #1346

tak-amboss opened this issue Dec 4, 2013 · 0 comments

Comments

@tak-amboss
Copy link

After fixing issue #1339 a tooltip appended to body will produce the following error after scope is destroyed:

Cannot call method 'append' of null

Here's a fiddle: http://jsfiddle.net/tak_aryelle/ujRy2/4/

I'll send a pull request.

tak-amboss pushed a commit to tak-amboss/bootstrap that referenced this issue Dec 4, 2013
Closes angular-ui#1339
Closes angular-ui#1346

'tooltip' and '$body' have been set to null if scope was destroyed for preventing memory leaks (angular-ui#1133). Deleting both instead will prevent the described errors.
@bekos bekos closed this as completed in 3fe7aa8 Dec 14, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant