Fixed logic error that caused the test to always pass.
authorTrevor Parscal <tparscal@users.mediawiki.org>
Tue, 11 Jan 2011 21:55:45 +0000 (21:55 +0000)
committerTrevor Parscal <tparscal@users.mediawiki.org>
Tue, 11 Jan 2011 21:55:45 +0000 (21:55 +0000)
resources/jquery/jquery.client.js

index 9d52ff5..8b96b83 100644 (file)
@@ -169,7 +169,7 @@ $.client = new ( function() {
                var profile = $.client.profile();
                var dir = $( 'body' ).is( '.rtl' ) ? 'rtl' : 'ltr';
                // Check over each browser condition to determine if we are running in a compatible client
-               if ( typeof map[dir] !== 'object' || map[dir][profile.name] !== 'object' ) {
+               if ( typeof map[dir] !== 'object' || typeof map[dir][profile.name] === 'undefined' ) {
                        // Unknown, so we assume it's working
                        return true;
                }