mirror of
https://github.com/atom/atom.git
synced 2026-02-09 22:24:59 -05:00
Use Editor.deserialize in Editor.prototype.copy and add a spec for it
This commit is contained in:
@@ -67,7 +67,7 @@ class Editor extends View
|
||||
{ viewClass: "Editor", @editSessions, @activeEditSessionIndex, @isFocused }
|
||||
|
||||
copy: ->
|
||||
new Editor(@serialize())
|
||||
Editor.deserialize(@serialize())
|
||||
|
||||
bindKeys: ->
|
||||
@on 'save', => @save()
|
||||
|
||||
Reference in New Issue
Block a user