changesettracker: Delete IE8 compatibility code

This commit is contained in:
Richard Hansen 2021-10-21 00:49:35 -04:00
parent 9f66ffbc3b
commit b3215992c9

View file

@ -136,15 +136,6 @@ const makeChangesetTracker = (scheduler, apool, aceCallbacksProvider) => {
// that includes old submittedChangeset
toSubmit = Changeset.compose(submittedChangeset, userChangeset, apool);
} else {
// add forEach function to Array.prototype for IE8
if (!('forEach' in Array.prototype)) {
Array.prototype.forEach = function (action, that /* opt*/) {
for (let i = 0, n = this.length; i < n; i++) {
if (i in this) action.call(that, this[i], i, this);
}
};
}
// Get my authorID
const authorId = parent.parent.pad.myUserInfo.userId;