Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 8a8a664ffaf893cbd3c14719c17737c14c28ab78 1 parent 0c554f5
@chrisdone authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 jquery.console.js
View
4 jquery.console.js
@@ -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
@@ -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)
);
};
Please sign in to comment.
Something went wrong with that request. Please try again.