mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Added in jQuery.browser.firefox, deprecated jQuery.browser.mozilla.
This commit is contained in:
parent
841f9ff7a1
commit
17791c9a3e
@ -620,7 +620,7 @@ jQuery.extend({
|
|||||||
return ret.concat.apply( [], ret );
|
return ret.concat.apply( [], ret );
|
||||||
},
|
},
|
||||||
|
|
||||||
// Use of jQuery.browser is deprecated.
|
// Use of jQuery.browser is frowned upon.
|
||||||
// It's included for backwards compatibility and plugins,
|
// It's included for backwards compatibility and plugins,
|
||||||
// although they should work to migrate away.
|
// although they should work to migrate away.
|
||||||
browser: {
|
browser: {
|
||||||
@ -628,10 +628,13 @@ jQuery.extend({
|
|||||||
safari: /safari/.test( userAgent ),
|
safari: /safari/.test( userAgent ),
|
||||||
opera: /opera/.test( userAgent ),
|
opera: /opera/.test( userAgent ),
|
||||||
msie: /msie/.test( userAgent ) && !/opera/.test( userAgent ),
|
msie: /msie/.test( userAgent ) && !/opera/.test( userAgent ),
|
||||||
mozilla: /mozilla/.test( userAgent ) && !/(compatible|webkit)/.test( userAgent )
|
firefox: /mozilla/.test( userAgent ) && !/(compatible|webkit)/.test( userAgent )
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Deprecated
|
||||||
|
jQuery.browser.mozilla = jQuery.browser.firefox;
|
||||||
|
|
||||||
if ( indexOf ) {
|
if ( indexOf ) {
|
||||||
jQuery.inArray = function( elem, array ) {
|
jQuery.inArray = function( elem, array ) {
|
||||||
return indexOf.call( array, elem );
|
return indexOf.call( array, elem );
|
||||||
|
Loading…
Reference in New Issue
Block a user