]> source.dussan.org Git - jquery-ui.git/commitdiff
don't need document ready on init
authorMarc Grabanski <m@marcgrabanski.com>
Sun, 20 Jul 2008 17:16:09 +0000 (17:16 +0000)
committerMarc Grabanski <m@marcgrabanski.com>
Sun, 20 Jul 2008 17:16:09 +0000 (17:16 +0000)
ui/ui.datepicker.js

index a044575245d605600b7cc154b15247173f9201f3..ca27f1a054e699c1a58dee37ed273c59b061295b 100644 (file)
@@ -1563,11 +1563,9 @@ $.fn.datepicker = function(options){
        
        /* Initialise the date picker. */
        if (!$.datepicker.initialized) {
-               $(function() {
-                       $(document.body)
-                               .append($.datepicker.dpDiv)
-                               .mousedown($.datepicker._checkExternalClick);
-               });
+               $(document.body)
+                       .append($.datepicker.dpDiv)
+                       .mousedown($.datepicker._checkExternalClick);
                $.datepicker.initialized = true;
        }