Index: trunk/phase3/resources/jquery/jquery.textSelection.js |
— | — | @@ -261,7 +261,7 @@ |
262 | 262 | */ |
263 | 263 | scrollToCaretPosition: function( options ) { |
264 | 264 | function getLineLength( e ) { |
265 | | - return Math.floor( e.scrollWidth / ( $.os.name == 'linux' ? 7 : 8 ) ); |
| 265 | + return Math.floor( e.scrollWidth / ( $.client.platform == 'linux' ? 7 : 8 ) ); |
266 | 266 | } |
267 | 267 | function getCaretScrollPosition( e ) { |
268 | 268 | // FIXME: This functions sucks and is off by a few lines most |
— | — | @@ -304,7 +304,7 @@ |
305 | 305 | charInLine = caret - lastSpaceInLine; |
306 | 306 | row++; |
307 | 307 | } |
308 | | - return ( $.os.name == 'mac' ? 13 : ( $.os.name == 'linux' ? 15 : 16 ) ) * row; |
| 308 | + return ( $.client.platform == 'mac' ? 13 : ( $.client.platform == 'linux' ? 15 : 16 ) ) * row; |
309 | 309 | } |
310 | 310 | return this.each(function() { |
311 | 311 | if ( $(this).is( ':hidden' ) ) { |