mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 07:56:16 -04:00
changesettracker: Delete IE8 compatibility code
This commit is contained in:
parent
9f66ffbc3b
commit
b3215992c9
1 changed files with 0 additions and 9 deletions
|
@ -136,15 +136,6 @@ const makeChangesetTracker = (scheduler, apool, aceCallbacksProvider) => {
|
||||||
// that includes old submittedChangeset
|
// that includes old submittedChangeset
|
||||||
toSubmit = Changeset.compose(submittedChangeset, userChangeset, apool);
|
toSubmit = Changeset.compose(submittedChangeset, userChangeset, apool);
|
||||||
} else {
|
} 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
|
// Get my authorID
|
||||||
const authorId = parent.parent.pad.myUserInfo.userId;
|
const authorId = parent.parent.pad.myUserInfo.userId;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue