Skip to content
This repository has been archived by the owner on Nov 28, 2018. It is now read-only.

Commit

Permalink
Don't bother with wbr with Opera, just doesn't work
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdone committed Apr 1, 2011
1 parent 0c554f5 commit 8a8a664
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jquery.console.js
Expand Up @@ -94,7 +94,7 @@
// Opera only works with this character, not <wbr> or &shy;,
// but IE6 displays this character, which is bad, so just use
// it on Opera.
var wbr = $.browser.opera? '&#8203;' : '';
var wbr = $.browser.opera? '' : '<wbr>&shy;';

////////////////////////////////////////////////////////////////////////
// Globals
Expand Down Expand Up @@ -632,7 +632,7 @@
.replace(/</g,'&lt;')
.replace(/ /g,'&nbsp;')
.replace(/\n/g,'<br />')
.replace(/([^<>&]{10})/g,'$1<wbr>&shy;' + wbr)
.replace(/([^<>&]{10})/g,'$1' + wbr)
);
};

Expand Down

0 comments on commit 8a8a664

Please sign in to comment.