From d1b594db7a7307efd7de29a2875046166c69a76f Mon Sep 17 00:00:00 2001
From: Jacob Thornton <jacobthornton@gmail.com>
Date: Thu, 15 Sep 2011 23:16:06 -0700
Subject: [PATCH] $(document).ready instead of $(function() {}) for ender
 support

---
 js/bootstrap-alerts.js    | 4 ++--
 js/bootstrap-modal.js     | 4 ++--
 js/bootstrap-scrollspy.js | 2 +-
 js/bootstrap-tabs.js      | 2 +-
 js/bootstrap-twipsy.js    | 2 +-
 5 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/js/bootstrap-alerts.js b/js/bootstrap-alerts.js
index 77708246c9..6b284690b6 100644
--- a/js/bootstrap-alerts.js
+++ b/js/bootstrap-alerts.js
@@ -25,7 +25,7 @@
 
    var transitionEnd
 
-   $(function () {
+   $(document).ready(function () {
 
      $.support.transition = (function () {
        var thisBody = document.body || document.documentElement
@@ -97,7 +97,7 @@
     })
   }
 
-  $(function () {
+  $(document).ready(function () {
     new Alert($('body'), '.alert-message[data-alert] .close')
   })
 
diff --git a/js/bootstrap-modal.js b/js/bootstrap-modal.js
index f4d5977c85..41a7a4115c 100644
--- a/js/bootstrap-modal.js
+++ b/js/bootstrap-modal.js
@@ -25,7 +25,7 @@
 
   var transitionEnd
 
-  $(function () {
+  $(document).ready(function () {
 
     $.support.transition = (function () {
       var thisBody = document.body || document.documentElement
@@ -216,7 +216,7 @@
  /* MODAL DATA- IMPLEMENTATION
   * ========================== */
 
-  $(function () {
+  $(document).ready(function () {
     $('body').delegate('[data-controls-modal]', 'click', function (e) {
       e.preventDefault()
       var $this = $(this).data('show', true)
diff --git a/js/bootstrap-scrollspy.js b/js/bootstrap-scrollspy.js
index 1e4e9ec7dd..7d9bf7b6c2 100644
--- a/js/bootstrap-scrollspy.js
+++ b/js/bootstrap-scrollspy.js
@@ -98,7 +98,7 @@
     return this
   }
 
-  $(function () {
+  $(document).ready(function () {
     $('body').scrollSpy('[data-scrollspy] li > a')
   })
 
diff --git a/js/bootstrap-tabs.js b/js/bootstrap-tabs.js
index 37ca597130..7bac0bc601 100644
--- a/js/bootstrap-tabs.js
+++ b/js/bootstrap-tabs.js
@@ -55,7 +55,7 @@
     })
   }
 
-  $(function () {
+  $(document).ready(function () {
     $('body').tabs('ul[data-tabs] li > a, ul[data-pills] > li > a')
   })
 
diff --git a/js/bootstrap-twipsy.js b/js/bootstrap-twipsy.js
index e476407f77..5ac73291b7 100644
--- a/js/bootstrap-twipsy.js
+++ b/js/bootstrap-twipsy.js
@@ -26,7 +26,7 @@
 
   var transitionEnd
 
-  $(function () {
+  $(document).ready(function () {
 
     $.support.transition = (function () {
       var thisBody = document.body || document.documentElement
-- 
GitLab