aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src/main
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-08-12 10:21:24 +0300
committerGravatar Vitaly Takmazov2016-08-12 10:21:24 +0300
commit22a728a5fed472c9b6c0d60c7b18d485d29d05b8 (patch)
tree78ae5c9371320c51cd23a356b4e316dd945af0dc /juick-www/src/main
parent84429b5cba2a10c12a956684d237c89c92d76ebb (diff)
juick-www: Element.remove polyfill
Diffstat (limited to 'juick-www/src/main')
-rw-r--r--juick-www/src/main/static/scripts.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/juick-www/src/main/static/scripts.js b/juick-www/src/main/static/scripts.js
index 876fa6d1..0c701359 100644
--- a/juick-www/src/main/static/scripts.js
+++ b/juick-www/src/main/static/scripts.js
@@ -2,6 +2,13 @@ var autosize = require('autosize');
require('whatwg-fetch');
require('element-closest');
require('classlist.js');
+if (!('remove' in Element.prototype)) { // Firefox <23
+ Element.prototype.remove = function() {
+ if (this.parentNode) {
+ this.parentNode.removeChild(this);
+ }
+ };
+}
NodeList.prototype.forEach = Array.prototype.forEach;
HTMLCollection.prototype.forEach = Array.prototype.forEach;