Commit 9fbde23b authored by Randall Leeds's avatar Randall Leeds

No more domChange events

parent c9509c3f
......@@ -22,9 +22,3 @@ exports.highlightRange = (normedRange, cssClass='annotator-hl') ->
nodes = $(normedRange.textNodes()).filter((i) -> not white.test @nodeValue)
r = nodes.wrap(hl).parent().show().toArray()
for node in nodes
event = document.createEvent "UIEvents"
event.initUIEvent "domChange", true, false, window, 0
event.reason = "created hilite"
node.dispatchEvent event
r
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment