Skip to content

Commit

Permalink
Remove old & invalid msie < 9 support code
Browse files Browse the repository at this point in the history
  • Loading branch information
wilzbach committed May 8, 2018
1 parent 35d7346 commit 93be58c
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions js/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,18 +282,13 @@ function setupTextarea(el, opts)

var prepareForMain = function()
{
var src = $.browser.msie && $.browser.version < 9.0 ? orgSrc[0].innerText : orgSrc.text();
var src = orgSrc.text();
var arr = src.split("\n");
var str = "";
for ( i = 0; i < arr.length; i++)
for (var i = 0; i < arr.length; i++)
{
str += arr[i]+"\n";
}
if ($.browser.msie && $.browser.version < 9.0)
str = str.substr(0, str.length - 1);
else
str = str.substr(0, str.length - 2);

return str;
};

Expand Down

0 comments on commit 93be58c

Please sign in to comment.