]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
add bs- prefix to tooltip
authorfat <jacobthornton@gmail.com>
Fri, 17 May 2013 00:19:23 +0000 (17:19 -0700)
committerfat <jacobthornton@gmail.com>
Fri, 17 May 2013 00:19:23 +0000 (17:19 -0700)
js/tooltip.js

index a75b755fda299cc6d6e514ba1e507639956aa465..60cbe12007c7e5a3fea4e3b4d92cd4f310d7722f 100644 (file)
   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)
 
   $.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]()
     })
   }