Skip to content

Commit

Permalink
Fix typo in multicursor module.
Browse files Browse the repository at this point in the history
  • Loading branch information
byronm committed May 9, 2014
1 parent 7dab74f commit 876b995
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/multi-cursor.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class MultiCursor extends EventEmitter2
removeCursor: (userId) ->
cursor = @cursors[userId]
this.emit(MultiCursor.events.CURSOR_REMOVED, cursor)
cursor.elem.parentNode.removeChild(cursor.elem) of cursor?
cursor.elem.parentNode.removeChild(cursor.elem) if cursor?
delete @cursors[userId]

setCursor: (userId, index, name, color, update = true) ->
Expand Down

0 comments on commit 876b995

Please sign in to comment.