narrow down the browser detect

This commit is contained in:
Doug Bell 2009-09-22 16:16:30 -05:00
parent c16ed6ca8e
commit 47390c5d6e

View file

@ -100,7 +100,9 @@
YAHOO.widget.CodeEditor.prototype._cleanIncomingHTML = function(str) {
// &nbsp; before <br> for IE7 so lines show up correctly
str = str.replace(/\r?\n/g, "&nbsp;<br>");
if ( this.browser.ie && this.browser.ie <= 7 ) {
str = str.replace(/\r?\n/g, "&nbsp;<br>");
}
return str;
};