Index: branches/wmf/1.17wmf1/resources/jquery/jquery.client.js |
— | — | @@ -6,7 +6,7 @@ |
7 | 7 | |
8 | 8 | /* Private Members */ |
9 | 9 | |
10 | | - var profile; |
| 10 | + var profile, that=this; |
11 | 11 | |
12 | 12 | /* Public Functions */ |
13 | 13 | |
— | — | @@ -167,7 +167,7 @@ |
168 | 168 | * @return Boolean true if browser known or assumed to be supported, false if blacklisted |
169 | 169 | */ |
170 | 170 | this.test = function( map ) { |
171 | | - var profile = jQuery.client.profile(); |
| 171 | + var profile = that.profile(); |
172 | 172 | var dir = jQuery( 'body' ).is( '.rtl' ) ? 'rtl' : 'ltr'; |
173 | 173 | // Check over each browser condition to determine if we are running in a compatible client |
174 | 174 | if ( typeof map[dir] !== 'object' || typeof map[dir][profile.name] === 'undefined' ) { |