diff options
Diffstat (limited to 'js/udom.js')
-rw-r--r-- | js/udom.js | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -2,7 +2,7 @@ ηMatrix - a browser extension to black/white list requests. Copyright (C) 2014-2019 Raymond Hill - Copyright (C) 2019-2020 Alessio Vanni + Copyright (C) 2019-2022 Alessio Vanni This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -26,8 +26,6 @@ 'use strict'; -/******************************************************************************/ - // It's just a silly, minimalist DOM framework: this allows me to not rely // on jQuery. jQuery contains way too much stuff than I need, and as per // Opera rules, I am not allowed to use a cut-down version of jQuery. So @@ -288,7 +286,8 @@ var uDom = (function () { let i = this.nodes.length; while (i--) { let cn = this.nodes[i]; - if ((p = cn.parentNode)) { + let p = cn.parentNode; + if (p) { p.removeChild(cn); } } |