Make WordPress Core

Changeset 24371


Ignore:
Timestamp:
05/26/2013 08:49:05 AM (11 years ago)
Author:
ocean90
Message:

Remove deprecated jQuery API .browser in suggest.js. No need for a replacement since it works without too. see #22975.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/jquery/suggest.js

    r21592 r24371  
    1919
    2020        $input = $(input).attr("autocomplete", "off");
    21         $results = $(document.createElement("ul"));
     21        $results = $("<ul/>");
    2222
    2323        timeout = false;        // hold timeout ID for suggestion results to appear
     
    3838        });
    3939
    40 
    41         // help IE users if possible
    42         if ( $.browser.msie ) {
    43             try {
    44                 $results.bgiframe();
    45             } catch(e) { }
    46         }
    47 
    48         // I really hate browser detection, but I don't see any other way
    49         if ($.browser.mozilla)
    50             $input.keypress(processKey);    // onkeypress repeats arrow keys in Mozilla/Opera
    51         else
    52             $input.keydown(processKey);     // onkeydown repeats arrow keys in IE/Safari
    53 
    54 
    55 
     40        $input.keydown(processKey);
    5641
    5742        function resetPosition() {
Note: See TracChangeset for help on using the changeset viewer.