We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 144c7c1 + d55f9bb commit 5127118Copy full SHA for 5127118
src/tooltip/tooltip.js
@@ -331,10 +331,6 @@
331
332
// jQuery plugin implementation
333
$.fn.tooltip = function(conf) {
334
-
335
- // return existing instance
336
- var api = this.data("tooltip");
337
- if (api) { return api; }
338
339
conf = $.extend(true, {}, $.tools.tooltip.conf, conf);
340
@@ -344,9 +340,12 @@
344
}
345
341
346
342
// install tooltip for each entry in jQuery object
343
+ // that is not an existing instance
347
this.each(function() {
348
- api = new Tooltip($(this), conf);
349
- $(this).data("tooltip", api);
+ if ( $(this).data("tooltip")===null){
+ api = new Tooltip($(this), conf);
+ $(this).data("tooltip", api);
+ };
350
});
351
352
return conf.api ? api: this;
0 commit comments