Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
peach-html5-editor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
998c004
)
remove obsolete debugging code
author
Jason Woofenden
<jason@jasonwoof.com>
Thu, 16 Jun 2016 18:26:14 +0000
(14:26 -0400)
committer
Jason Woofenden
<jason@jasonwoof.com>
Thu, 16 Jun 2016 18:26:14 +0000
(14:26 -0400)
editor.coffee
patch
|
blob
|
history
diff --git
a/editor.coffee
b/editor.coffee
index
47adbd8
..
2bb3d99
100644
(file)
--- 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
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) ->
# text nodes don't have getBoundingClientRect(), so use selection api to find
# it.
get_el_bounds = window.bounds = (el) ->