Execute tooltip listeners only once when the DOM is ready
This commit is contained in:
committed by
GitHub
parent
0ede384cda
commit
17b764e862
1
assets/js/core/bootstrap.js
vendored
1
assets/js/core/bootstrap.js
vendored
@@ -3,6 +3,5 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||
KB.render();
|
||||
KB.listen();
|
||||
KB.keyboardShortcuts();
|
||||
KB.tooltip();
|
||||
KB.trigger('dom.ready');
|
||||
});
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
KB.tooltip = function () {
|
||||
KB.on('dom.ready', function() {
|
||||
function onMouseOver(mytarget) {
|
||||
if (! exists()) {
|
||||
create(mytarget);
|
||||
@@ -113,4 +113,4 @@ KB.tooltip = function () {
|
||||
mouseLeftParent();
|
||||
}
|
||||
});
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user