From: Jason Woofenden Date: Thu, 16 Jun 2016 18:26:14 +0000 (-0400) Subject: remove obsolete debugging code X-Git-Url: https://jasonwoof.com/gitweb/?p=peach-html5-editor.git;a=commitdiff_plain;h=a8c1cd27ec47a79a0c566f9437abaff6bf248884 remove obsolete debugging code --- diff --git a/editor.coffee b/editor.coffee index 47adbd8..2bb3d99 100644 --- a/editor.coffee +++ b/editor.coffee @@ -76,13 +76,6 @@ multi_sp_regex = new RegExp '[\u0020\u0009\u000a\u000c\u000d][\u0020\u0009\u000a str_has_ws_run = (str) -> return multi_sp_regex.test str -debug_dot_at = (doc, x, y) -> - return # disabled - el = doc.createElement 'div' - el.setAttribute 'style', "position: absolute; left: #{x}px; top: #{y}px; width: 1px; height: 3px; background-color: red" - doc.body.appendChild el - #console.log(new Error().stack) - # text nodes don't have getBoundingClientRect(), so use selection api to find # it. get_el_bounds = window.bounds = (el) ->