From 9d999a61fc4b9b150299aaf70463cc217d963f52 Mon Sep 17 00:00:00 2001 From: Trevor Parscal Date: Tue, 11 Jan 2011 21:55:45 +0000 Subject: [PATCH] Fixed logic error that caused the test to always pass. --- resources/jquery/jquery.client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/jquery/jquery.client.js b/resources/jquery/jquery.client.js index 9d52ff5a89..8b96b836b0 100644 --- a/resources/jquery/jquery.client.js +++ b/resources/jquery/jquery.client.js @@ -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; } -- 2.20.1