aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dom_utils.coffee
diff options
context:
space:
mode:
Diffstat (limited to 'lib/dom_utils.coffee')
-rw-r--r--lib/dom_utils.coffee4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/dom_utils.coffee b/lib/dom_utils.coffee
index 57930f80..d4a4d379 100644
--- a/lib/dom_utils.coffee
+++ b/lib/dom_utils.coffee
@@ -128,8 +128,8 @@ DomUtils =
flashEl.style.top = rect.top + window.scrollY + "px"
flashEl.style.width = rect.width + "px"
flashEl.style.height = rect.height + "px"
- document.body.appendChild(flashEl)
- setTimeout((-> flashEl.parentNode.removeChild(flashEl)), 400)
+ document.documentElement.appendChild(flashEl)
+ setTimeout((-> DomUtils.removeElement flashEl), 400)
root = exports ? window
root.DomUtils = DomUtils