Skip to content

Commit

Permalink
Switch back to $(document).ready()
Browse files Browse the repository at this point in the history
  • Loading branch information
cespare committed Feb 14, 2013
1 parent 92c1866 commit c060fd6
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion public/coffee/commit.coffee
Expand Up @@ -724,7 +724,7 @@ window.Commit =
unless $.trim(textarea.value) == ""
return "You have an unsaved comment."

$ -> Commit.init()
$(document).ready(-> Commit.init())
# This needs to happen on page load because we need the styles to be rendered.
$(window).load(-> Commit.calculateMarginSize())
$(window).bind "beforeunload", -> Commit.confirmNavigation()
2 changes: 1 addition & 1 deletion public/coffee/commit_search.coffee
Expand Up @@ -369,4 +369,4 @@ window.CommitSearch =
afterSync: ->
@syncing = false

$ -> CommitSearch.init()
$(document).ready(-> CommitSearch.init())
2 changes: 1 addition & 1 deletion public/coffee/repos.coffee
Expand Up @@ -26,4 +26,4 @@ window.Repos =
$("#confirmationMessage").show()
$("#confirmationMessage").html(message)

$ -> Repos.init()
$(document).ready -> Repos.init()
2 changes: 1 addition & 1 deletion public/coffee/stats.coffee
Expand Up @@ -31,4 +31,4 @@ window.Stats =
}
})

$ -> Stats.init()
$(document).ready(-> Stats.init())
2 changes: 1 addition & 1 deletion public/coffee/user_settings.coffee
Expand Up @@ -42,4 +42,4 @@ window.Settings =
Util.saveUserPreference preference, value, =>
$displayText.css { opacity: "1.0" }

$ -> Settings.init()
$(document).ready -> Settings.init()
2 changes: 1 addition & 1 deletion public/coffee/users_admin.coffee
Expand Up @@ -21,7 +21,7 @@ window.UserAdmin =

numberOfAdminUsers: -> $("input[type=radio][value=admin]:checked").size()

$ ->
$(document).ready ->
$("input[type=radio]").click ->
targetUserId = $(event.target).parents("tr").attr("data-user-id")
permission = $(event.target).val()
Expand Down
2 changes: 1 addition & 1 deletion public/coffee/util.coffee
Expand Up @@ -119,6 +119,6 @@ window.KeyboardShortcuts =
@registerPageShortcut "s", -> window.location.href = "/stats"
@registerPageShortcut "i", -> window.location.href = "/inspire"

$ ->
$(document).ready ->
ShortcutOverlay.init()
KeyboardShortcuts.init()
2 changes: 1 addition & 1 deletion views/layout.erb
Expand Up @@ -12,7 +12,7 @@
<% end %>

<script>
$(function() {
$(document).ready(function() {
if (jQuery.browser.webkit)
$("body").addClass("webkit");
else if (jQuery.browser.mozilla)
Expand Down

0 comments on commit c060fd6

Please sign in to comment.