diff options
author | Jacob Thornton <jacobthornton@gmail.com> | 2011-12-21 06:02:47 +0400 |
---|---|---|
committer | Jacob Thornton <jacobthornton@gmail.com> | 2011-12-21 06:02:47 +0400 |
commit | 1ef5fa7d6b4e50230c0c12919b0a06a9a2ac07f1 (patch) | |
tree | 72a3b02a1755096a9737451dea3030f0da65197d /js/bootstrap-tab.js | |
parent | 7df0d1c7d18a72f401094d08afa4eaa9142fe511 (diff) |
giant refactor - all spec passing again...
Diffstat (limited to 'js/bootstrap-tab.js')
-rw-r--r-- | js/bootstrap-tab.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/js/bootstrap-tab.js b/js/bootstrap-tab.js index 6aa8ae32cf..e0a92816d4 100644 --- a/js/bootstrap-tab.js +++ b/js/bootstrap-tab.js @@ -79,7 +79,7 @@ /* TAB PLUGIN DEFINITION * ===================== */ - $.fn.tab = function (option) { + $.fn.tab = function ( option ) { return this.each(function () { var $this = $(this) , data = $this.data('tab') @@ -94,11 +94,11 @@ /* TAB DATA-API * ============ */ - $(document).ready(function () { - $('body').delegate('[data-toggle="tab"], [data-toggle="pill"]', 'click.tab.data-api', function (e) { + $(function () { + $('body').on('click.tab.data-api', '[data-toggle="tab"], [data-toggle="pill"]', function (e) { e.preventDefault() $(this).tab('show') }) }) -}( window.jQuery || window.ender )
\ No newline at end of file +}( window.jQuery )
\ No newline at end of file |