From: fat Date: Fri, 17 May 2013 00:19:23 +0000 (-0700) Subject: add bs- prefix to tooltip X-Git-Tag: v3.0.0-rc1~352 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=19de2e86035746b4cda13d4e3860bc549b4f4841;p=thirdparty%2Fbootstrap.git add bs- prefix to tooltip --- diff --git a/js/tooltip.js b/js/tooltip.js index a75b755fda..60cbe12007 100644 --- a/js/tooltip.js +++ b/js/tooltip.js @@ -225,7 +225,7 @@ Tooltip.prototype.hide = function () { var that = this var $tip = this.tip() - var e = $.Event('hide') + var e = $.Event('bs:' + this.type + ':hide') this.$element.trigger(e) @@ -329,10 +329,10 @@ $.fn.tooltip = function ( option ) { return this.each(function () { var $this = $(this) - var data = $this.data('tooltip') + var data = $this.data('bs-tooltip') var options = typeof option == 'object' && option - if (!data) $this.data('tooltip', (data = new Tooltip(this, options))) + if (!data) $this.data('bs-tooltip', (data = new Tooltip(this, options))) if (typeof option == 'string') data[option]() }) }