From b08a6e522f3c98c81377ac10e58fd4020b3b47e6 Mon Sep 17 00:00:00 2001 From: goldquest Date: Wed, 17 Apr 2013 16:51:21 +0200 Subject: [PATCH 1/4] IE8 complains, if catch block is missing --- src/static/js/changesettracker.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/static/js/changesettracker.js b/src/static/js/changesettracker.js index d0c91e3d3..92d550928 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; From 566034ddf0d3ede031389b58253939967a170343 Mon Sep 17 00:00:00 2001 From: goldquest Date: Wed, 17 Apr 2013 16:51:43 +0200 Subject: [PATCH 2/4] IE8 don't knows the Array.forEach function (simple version fix) --- src/static/js/changesettracker.js | 10 ++++++++++ src/static/js/html10n.js | 9 +++++++++ 2 files changed, 19 insertions(+) diff --git a/src/static/js/changesettracker.js b/src/static/js/changesettracker.js index 92d550928..b93fcc174 100644 --- a/src/static/js/changesettracker.js +++ b/src/static/js/changesettracker.js @@ -162,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 Date: Wed, 17 Apr 2013 16:51:54 +0200 Subject: [PATCH 3/4] use document, not doc --- src/static/js/pad.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/static/js/pad.js b/src/static/js/pad.js index 504bc21e4..9a42bccce 100644 --- a/src/static/js/pad.js +++ b/src/static/js/pad.js @@ -463,7 +463,7 @@ var pad = { { try { - doc.execCommand("BackgroundImageCache", false, true); + document.execCommand("BackgroundImageCache", false, true); } catch (e) {} From 98c43aff43535ed8d05e4c073590c77d4be4d9c6 Mon Sep 17 00:00:00 2001 From: goldquest Date: Wed, 17 Apr 2013 18:17:14 +0200 Subject: [PATCH 4/4] fixed spacing --- src/static/js/changesettracker.js | 16 ++++++++-------- 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 b93fcc174..7e95cc75f 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