diff options
| author | Jacob Thornton <[email protected]> | 2012-10-17 23:05:16 -0700 |
|---|---|---|
| committer | Jacob Thornton <[email protected]> | 2012-10-17 23:05:16 -0700 |
| commit | 7f3b94c45315475a129ace3c22e122808c2dbcaa (patch) | |
| tree | 0b963ce17c8bd8c5f43356da36015daee7295ede /js/bootstrap-tab.js | |
| parent | 280d4aeb30aa6b29ec74bd801ad1be3fc05e01f4 (diff) | |
| parent | e1f6458e3640a628cdb6b2e4c63950777d46e141 (diff) | |
| download | bootstrap-7f3b94c45315475a129ace3c22e122808c2dbcaa.tar.xz bootstrap-7f3b94c45315475a129ace3c22e122808c2dbcaa.zip | |
Merge branch 'delegate-api-to-document' of git://github.com/badcarl/bootstrap into badcarl-delegate-api-to-document
Conflicts:
js/bootstrap-carousel.js
Diffstat (limited to 'js/bootstrap-tab.js')
| -rw-r--r-- | js/bootstrap-tab.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/js/bootstrap-tab.js b/js/bootstrap-tab.js index b4e142864..cc9cba7dc 100644 --- a/js/bootstrap-tab.js +++ b/js/bootstrap-tab.js @@ -125,11 +125,9 @@ /* TAB DATA-API * ============ */ - $(function () { - $('body').on('click.tab.data-api', '[data-toggle="tab"], [data-toggle="pill"]', function (e) { - e.preventDefault() - $(this).tab('show') - }) + $(document).on('click.tab.data-api', '[data-toggle="tab"], [data-toggle="pill"]', function (e) { + e.preventDefault() + $(this).tab('show') }) }(window.jQuery);
\ No newline at end of file |
