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:
parent
775990f040
commit
0c152c219f
3 changed files with 27 additions and 18 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue