Skip to content

Commit

Permalink
Revert "Firefox does not like setting range to..."
Browse files Browse the repository at this point in the history
This reverts commit a127c16.
  • Loading branch information
jhchen committed Aug 1, 2014
1 parent debb70f commit f0925e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/selection.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class Selection
shiftAfter: (index, length, fn) ->
range = this.getRange()
fn()
if range? and length != 0
if range?
range.shift(index, length)
this.setRange(range, 'silent')

Expand Down

0 comments on commit f0925e1

Please sign in to comment.