Don’t use atom.assert global in DisplayBuffer

This commit is contained in:
Nathan Sobo
2015-10-03 09:19:46 -06:00
parent edd666b845
commit dc0709ef9e
8 changed files with 36 additions and 22 deletions

View File

@@ -28,9 +28,11 @@ class Workspace extends Model
{
@packageManager, @config, @project, @grammarRegistry, @notificationManager,
@clipboard, @viewRegistry, @setRepresentedFilename, @setDocumentEdited
@clipboard, @viewRegistry, @setRepresentedFilename, @setDocumentEdited, @assert
} = params
debugger unless @assert?
@emitter = new Emitter
@openers = []
@destroyedItemURIs = []
@@ -458,7 +460,7 @@ class Workspace extends Model
@buildTextEditor(_.extend({buffer, largeFileMode}, options))
buildTextEditor: (params) ->
new TextEditor(_.extend({@config, @notificationManager, @clipboard, @viewRegistry, @project}, params))
new TextEditor(_.extend({@config, @notificationManager, @clipboard, @viewRegistry, @project, @assert}, params))
# Public: Asynchronously reopens the last-closed item's URI if it hasn't already been
# reopened.