Commit 19de2e86 authored by fat's avatar fat

add bs- prefix to tooltip

parent 149ecd21
...@@ -225,7 +225,7 @@ ...@@ -225,7 +225,7 @@
Tooltip.prototype.hide = function () { Tooltip.prototype.hide = function () {
var that = this var that = this
var $tip = this.tip() var $tip = this.tip()
var e = $.Event('hide') var e = $.Event('bs:' + this.type + ':hide')
this.$element.trigger(e) this.$element.trigger(e)
...@@ -329,10 +329,10 @@ ...@@ -329,10 +329,10 @@
$.fn.tooltip = function ( option ) { $.fn.tooltip = function ( option ) {
return this.each(function () { return this.each(function () {
var $this = $(this) var $this = $(this)
var data = $this.data('tooltip') var data = $this.data('bs-tooltip')
var options = typeof option == 'object' && option 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]() if (typeof option == 'string') data[option]()
}) })
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment