Skip to content
This repository
Browse code

Don't bother with wbr with Opera, just doesn't work

  • Loading branch information...
commit 8a8a664ffaf893cbd3c14719c17737c14c28ab78 1 parent 0c554f5
Chris Done authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  jquery.console.js
4  jquery.console.js
@@ -94,7 +94,7 @@
94 94
         // Opera only works with this character, not <wbr> or &shy;,
95 95
         // but IE6 displays this character, which is bad, so just use
96 96
         // it on Opera.
97  
-        var wbr = $.browser.opera? '&#8203;' : '';
  97
+        var wbr = $.browser.opera? '' : '<wbr>&shy;';
98 98
 
99 99
         ////////////////////////////////////////////////////////////////////////
100 100
         // Globals
@@ -632,7 +632,7 @@
632 632
                     .replace(/</g,'&lt;')
633 633
                     .replace(/ /g,'&nbsp;')
634 634
                     .replace(/\n/g,'<br />')
635  
-                    .replace(/([^<>&]{10})/g,'$1<wbr>&shy;' + wbr)
  635
+                    .replace(/([^<>&]{10})/g,'$1' + wbr)
636 636
             );
637 637
         };
638 638
 

0 notes on commit 8a8a664

Please sign in to comment.
Something went wrong with that request. Please try again.