aboutsummaryrefslogtreecommitdiff
path: root/js/tab.js
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-05-16 20:32:37 -0700
committerMark Otto <[email protected]>2013-05-16 20:32:37 -0700
commit0f4b4acce1df7f2cdfc6e0ad6dca59480868bd8d (patch)
tree55ffc7fe20fbbabbfb6b4cb9a6e6f8d7e94467cf /js/tab.js
parent8a3e98230544cd2197a57c6e9cb01e3ceeb7a678 (diff)
parent2433a076acc4dc318d238fd78361130a92e0a341 (diff)
downloadbootstrap-0f4b4acce1df7f2cdfc6e0ad6dca59480868bd8d.tar.xz
bootstrap-0f4b4acce1df7f2cdfc6e0ad6dca59480868bd8d.zip
Merge branch '3.0.0-wip' of github.com:twitter/bootstrap into 3.0.0-wip
Diffstat (limited to 'js/tab.js')
-rw-r--r--js/tab.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/js/tab.js b/js/tab.js
index 80d6f2618..68fdb0930 100644
--- a/js/tab.js
+++ b/js/tab.js
@@ -40,7 +40,7 @@
if ($this.parent('li').hasClass('active')) return
var previous = $ul.find('.active:last a')[0]
- var e = $.Event('bs:tab:show', {
+ var e = $.Event('show.bs.tab', {
relatedTarget: previous
})
@@ -53,7 +53,7 @@
this.activate($this.parent('li'), $ul)
this.activate($target, $target.parent(), function () {
$this.trigger({
- type: 'bs:tab:shown'
+ type: 'shown.bs.tab'
, relatedTarget: previous
})
})
@@ -103,9 +103,9 @@
$.fn.tab = function ( option ) {
return this.each(function () {
var $this = $(this)
- var data = $this.data('bs-tab')
+ var data = $this.data('bs.tab')
- if (!data) $this.data('bs-tab', (data = new Tab(this)))
+ if (!data) $this.data('bs.tab', (data = new Tab(this)))
if (typeof option == 'string') data[option]()
})
}
@@ -125,7 +125,7 @@
// TAB DATA-API
// ============
- $(document).on('click.tab.data-api', '[data-toggle="tab"], [data-toggle="pill"]', function (e) {
+ $(document).on('click.bs.tab.data-api', '[data-toggle="tab"], [data-toggle="pill"]', function (e) {
e.preventDefault()
$(this).tab('show')
})