Permalink
Browse files

Wait for document ready notification

Use jQuery ready event on document to ensure that the
whole document is loaded and ready.
  • Loading branch information...
1 parent 6b0522e commit 3b41a0b84074404907ef05e4530d970d1ecd3335 Mathieu Bruyen committed Jan 30, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 public/js/browserid-helper.js
@@ -1,7 +1,8 @@
-(function ($) {
+jQuery(document).ready(function() {
"use strict";
+ var $ = jQuery;
var options = {
auto: true
, debug: false
@@ -79,4 +80,4 @@
location.reload();
});
}
-})(jQuery);
+});

0 comments on commit 3b41a0b

Please sign in to comment.