Tooltips: "data[config] is not a function" error
Created by: denizozger
Running $(this).tooltip('destroy')
inside a jQuery function throws this Uncaught TypeError: data[config] is not a function
error.
$(function () {
$('[data-toggle="tooltip"]').tooltip();
$('[data-toggle="tooltip"]').each(function() {
$(this).tooltip('destroy');
});
})
Demonstration is below: http://codepen.io/denizozger/pen/ojXKNg
Here is the same code with Bootstrap 3.3.5: http://codepen.io/denizozger/pen/RWPXwR