diff options
| author | fat <[email protected]> | 2013-05-16 17:19:23 -0700 |
|---|---|---|
| committer | fat <[email protected]> | 2013-05-16 17:19:23 -0700 |
| commit | 19de2e86035746b4cda13d4e3860bc549b4f4841 (patch) | |
| tree | ba60a31e1e29e2a8c34d98eaf9a6e45530b64920 /js | |
| parent | 149ecd21bf7c56df897088d09ca309eb43a7dd9d (diff) | |
| download | bootstrap-19de2e86035746b4cda13d4e3860bc549b4f4841.tar.xz bootstrap-19de2e86035746b4cda13d4e3860bc549b4f4841.zip | |
add bs- prefix to tooltip
Diffstat (limited to 'js')
| -rw-r--r-- | js/tooltip.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/tooltip.js b/js/tooltip.js index a75b755fd..60cbe1200 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]() }) } |
