mirror of
https://github.com/documize/community.git
synced 2025-07-22 22:59:43 +02:00
improved tooltips
This commit is contained in:
parent
6a651770b5
commit
a86d52388e
4 changed files with 34 additions and 14 deletions
|
@ -15,7 +15,7 @@ export default Ember.Mixin.create({
|
|||
tooltips: [],
|
||||
|
||||
addTooltip(elem) {
|
||||
|
||||
|
||||
if(elem == null) {
|
||||
return;
|
||||
}
|
||||
|
@ -25,7 +25,13 @@ export default Ember.Mixin.create({
|
|||
});
|
||||
|
||||
let tt = this.get('tooltips');
|
||||
tt.push(t);
|
||||
tt.push(t);
|
||||
|
||||
return t;
|
||||
},
|
||||
|
||||
destroyTooltip(t) {
|
||||
t.destroy();
|
||||
},
|
||||
|
||||
destroyTooltips() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue