1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-25 08:09:43 +02:00

improved favorite JS code

This commit is contained in:
Harvey Kandola 2017-09-20 08:28:41 +01:00
parent 775990f040
commit 0c152c219f
3 changed files with 27 additions and 18 deletions

View file

@ -35,10 +35,14 @@ export default Ember.Mixin.create({
},
destroyTooltips() {
let tt = this.get('tooltips');
if (this.get('isDestroyed') || this.get('isDestroying')) {
return;
}
let tt = this.get('tooltips');
tt.forEach(t => {
t.destroy();
t.destroy();
});
tt.length = 0;