- # replace cursor element, to reset blink animation
- if @cursor_visible
- @cursor_el.parentNode.removeChild @cursor_el
- @cursor_el = domify @outer_idoc, div: id: 'cursor'
- @overlay.appendChild @cursor_el
- @cursor_visible = true
+ unless @cursor_visible
+ @cursor_el = domify @outer_idoc, div: id: 'cursor'
+ @overlay.appendChild @cursor_el
+ @cursor_visible = true