diff options
author | John Resig <jeresig@gmail.com> | 2009-12-08 22:52:32 -0800 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2009-12-08 22:52:32 -0800 |
commit | 17791c9a3e8a88e129a6956e7053b964d7b34778 (patch) | |
tree | a1f15a7e3e6af3bf50dd5cef5605a6fedfaf914f /src | |
parent | 841f9ff7a1815b521044aeeb39ccbe70fa688201 (diff) | |
download | jquery-17791c9a3e8a88e129a6956e7053b964d7b34778.tar.gz jquery-17791c9a3e8a88e129a6956e7053b964d7b34778.zip |
Added in jQuery.browser.firefox, deprecated jQuery.browser.mozilla.
Diffstat (limited to 'src')
-rw-r--r-- | src/core.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/core.js b/src/core.js index 81779fdb2..0a5bd53ce 100644 --- a/src/core.js +++ b/src/core.js @@ -620,7 +620,7 @@ jQuery.extend({ 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, // although they should work to migrate away. browser: { @@ -628,10 +628,13 @@ jQuery.extend({ safari: /safari/.test( userAgent ), opera: /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 ) { jQuery.inArray = function( elem, array ) { return indexOf.call( array, elem ); |