(string)
| 342 | |
| 343 | // Substract linefeed in Opera |
| 344 | function fixOperaBug(string) { |
| 345 | if ($.browser.opera) { |
| 346 | return string.length - string.replace(/\n*/g, '').length; |
| 347 | } |
| 348 | return 0; |
| 349 | } |
| 350 | // Substract linefeed in IE |
| 351 | function fixIeBug(string) { |
| 352 | if ($.browser.msie) { |