replace _.extend in favore of Object.assign

This commit is contained in:
Mihail Bodrov
2016-05-20 01:27:27 +03:00
parent aa9cc901f8
commit d602655708
11 changed files with 17 additions and 21 deletions

View File

@@ -2595,7 +2595,7 @@ class TextEditor extends Model
# Returns the new {Selection}.
addSelection: (marker, options={}) ->
cursor = @addCursor(marker)
selection = new Selection(_.extend({editor: this, marker, cursor, @clipboard}, options))
selection = new Selection(Object.assign({editor: this, marker, cursor, @clipboard}, options))
@selections.push(selection)
selectionBufferRange = selection.getBufferRange()
@mergeIntersectingSelections(preserveFolds: options.preserveFolds)