]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/js/jquery/suggest.js
WordPress 3.6.1-scripts
[autoinstalls/wordpress.git] / wp-includes / js / jquery / suggest.js
index 7f46cbc643f4b1e070489082025d2762482a16e0..3060507ff8459f614853280b6d9b43b6836a15c2 100644 (file)
@@ -18,7 +18,7 @@
                var $input, $results, timeout, prevLength, cache, cacheSize;
 
                $input = $(input).attr("autocomplete", "off");
-               $results = $(document.createElement("ul"));
+               $results = $("<ul/>");
 
                timeout = false;                // hold timeout ID for suggestion results to appear
                prevLength = 0;                 // last recorded length of $input.val()
                        setTimeout(function() { $results.hide() }, 200);
                });
 
-
-               // help IE users if possible
-               if ( $.browser.msie ) {
-                       try {
-                               $results.bgiframe();
-                       } catch(e) { }
-               }
-
-               // I really hate browser detection, but I don't see any other way
-               if ($.browser.mozilla)
-                       $input.keypress(processKey);    // onkeypress repeats arrow keys in Mozilla/Opera
-               else
-                       $input.keydown(processKey);             // onkeydown repeats arrow keys in IE/Safari
-
-
-
+               $input.keydown(processKey);
 
                function resetPosition() {
                        // requires jquery.dimension plugin
 
        };
 
-})(jQuery);
\ No newline at end of file
+})(jQuery);