diff options
Diffstat (limited to 'src/static/js')
-rw-r--r-- | src/static/js/changesettracker.js | 16 | ||||
-rw-r--r-- | src/static/js/html10n.js | 10 |
2 files changed, 13 insertions, 13 deletions
diff --git a/src/static/js/changesettracker.js b/src/static/js/changesettracker.js index b93fcc17..7e95cc75 100644 --- a/src/static/js/changesettracker.js +++ b/src/static/js/changesettracker.js @@ -163,14 +163,14 @@ 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); - }; - } + // 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; diff --git a/src/static/js/html10n.js b/src/static/js/html10n.js index 050601d1..90d51e22 100644 --- a/src/static/js/html10n.js +++ b/src/static/js/html10n.js @@ -82,11 +82,11 @@ window.html10n = (function(window, document, undefined) { // fix Array.prototype.forEach in IE 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); - }; + 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); + }; } /** |