Skip to content

Commit

Permalink
Destroy Link Tooltip on destroying editor instance.
Browse files Browse the repository at this point in the history
Fixes #4
  • Loading branch information
ipeychev committed Jul 25, 2014
1 parent f5f871d commit 06e8475
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ui/yui/src/plugins/linktooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,10 @@
}, editor.config.linktooltip);

tooltip = new Y.LinkTooltip(config).render();

editor.on('destroy', function() {
tooltip.destroy();
});
});
}
}
Expand Down

0 comments on commit 06e8475

Please sign in to comment.