Skip to content

Commit b321599

Browse files
committed
changesettracker: Delete IE8 compatibility code
1 parent 9f66ffb commit b321599

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/static/js/changesettracker.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -136,15 +136,6 @@ const makeChangesetTracker = (scheduler, apool, aceCallbacksProvider) => {
136136
// that includes old submittedChangeset
137137
toSubmit = Changeset.compose(submittedChangeset, userChangeset, apool);
138138
} else {
139-
// add forEach function to Array.prototype for IE8
140-
if (!('forEach' in Array.prototype)) {
141-
Array.prototype.forEach = function (action, that /* opt*/) {
142-
for (let i = 0, n = this.length; i < n; i++) {
143-
if (i in this) action.call(that, this[i], i, this);
144-
}
145-
};
146-
}
147-
148139
// Get my authorID
149140
const authorId = parent.parent.pad.myUserInfo.userId;
150141

0 commit comments

Comments
 (0)