Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Thornton <jacobthornton@gmail.com>2011-12-21 06:02:47 +0400
committerJacob Thornton <jacobthornton@gmail.com>2011-12-21 06:02:47 +0400
commit1ef5fa7d6b4e50230c0c12919b0a06a9a2ac07f1 (patch)
tree72a3b02a1755096a9737451dea3030f0da65197d /js/bootstrap-tab.js
parent7df0d1c7d18a72f401094d08afa4eaa9142fe511 (diff)
giant refactor - all spec passing again...
Diffstat (limited to 'js/bootstrap-tab.js')
-rw-r--r--js/bootstrap-tab.js8
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