debian-mirror-gitlab/app/assets/javascripts/vue_shared/directives/tooltip.js
2018-05-09 12:01:36 +05:30

15 lines
197 B
JavaScript

import $ from 'jquery';
export default {
bind(el) {
$(el).tooltip();
},
componentUpdated(el) {
$(el).tooltip('fixTitle');
},
unbind(el) {
$(el).tooltip('destroy');
},
};