Skip to content

Commit

Permalink
$(document).ready instead of $(function() {}) for ender support
Browse files Browse the repository at this point in the history
  • Loading branch information
fat committed Sep 16, 2011
1 parent 472632b commit d1b594d
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions js/bootstrap-alerts.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

var transitionEnd

$(function () {
$(document).ready(function () {

$.support.transition = (function () {
var thisBody = document.body || document.documentElement
Expand Down Expand Up @@ -97,7 +97,7 @@
})
}

$(function () {
$(document).ready(function () {
new Alert($('body'), '.alert-message[data-alert] .close')
})

Expand Down
4 changes: 2 additions & 2 deletions js/bootstrap-modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

var transitionEnd

$(function () {
$(document).ready(function () {

$.support.transition = (function () {
var thisBody = document.body || document.documentElement
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion js/bootstrap-scrollspy.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
return this
}

$(function () {
$(document).ready(function () {
$('body').scrollSpy('[data-scrollspy] li > a')
})

Expand Down
2 changes: 1 addition & 1 deletion js/bootstrap-tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
})
}

$(function () {
$(document).ready(function () {
$('body').tabs('ul[data-tabs] li > a, ul[data-pills] > li > a')
})

Expand Down
2 changes: 1 addition & 1 deletion js/bootstrap-twipsy.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

var transitionEnd

$(function () {
$(document).ready(function () {

$.support.transition = (function () {
var thisBody = document.body || document.documentElement
Expand Down

0 comments on commit d1b594d

Please sign in to comment.