From 1ef5fa7d6b4e50230c0c12919b0a06a9a2ac07f1 Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Tue, 20 Dec 2011 18:02:47 -0800 Subject: giant refactor - all spec passing again... --- js/bootstrap-tab.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'js/bootstrap-tab.js') 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 -- cgit v1.2.3