summaryrefslogtreecommitdiff
path: root/src/static/js/changesettracker.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/static/js/changesettracker.js')
-rw-r--r--src/static/js/changesettracker.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/static/js/changesettracker.js b/src/static/js/changesettracker.js
index dde4f5c7..8c4c1c21 100644
--- a/src/static/js/changesettracker.js
+++ b/src/static/js/changesettracker.js
@@ -57,6 +57,7 @@ function makeChangesetTracker(scheduler, apool, aceCallbacksProvider)
{
changeCallback();
}
+ catch(pseudoError) {}
finally
{
changeCallbackTimeout = null;
@@ -161,6 +162,16 @@ function makeChangesetTracker(scheduler, apool, aceCallbacksProvider)
}
else
{
+
+ // add forEach function to Array.prototype for IE8
+ if (!('forEach' in Array.prototype)) {
+ Array.prototype.forEach= function(action, that /*opt*/) {
+ for (var i= 0, n= this.length; i<n; i++)
+ if (i in this)
+ action.call(that, this[i], i, this);
+ };
+ }
+
// Get my authorID
var authorId = parent.parent.pad.myUserInfo.userId;