summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgoldquest <tjwelde@gmail.com>2013-04-17 18:17:14 +0200
committergoldquest <tjwelde@gmail.com>2013-04-17 18:17:14 +0200
commit98c43aff43535ed8d05e4c073590c77d4be4d9c6 (patch)
treeabc4d3bc8a1009bf33fba02d7e9bfe8899326ed0
parent896f72311fa0a833a537ae3e70c3f8ab39ac407e (diff)
downloadetherpad-lite-98c43aff43535ed8d05e4c073590c77d4be4d9c6.zip
fixed spacing
-rw-r--r--src/static/js/changesettracker.js16
-rw-r--r--src/static/js/html10n.js10
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);
+ };
}
/**