     params.defaultMarkerLayer = params.markerLayers[params.defaultMarkerLayerId]
     params.history = History.deserialize(buffer, params.history)
     params.load = true if params.filePath
-    buffer.initialize(params)
+    TextBuffer.call(buffer, params)
     buffer
 
   # Returns a {String} representing a unique identifier for this {TextBuffer}.

    @load() if params?.load

  @deserialize: (params) ->
    buffer = new TextBuffer(null, true)
    markerLayers = {}
    for layerId, layerState of params.markerLayers
      markerLayers[layerId] = MarkerLayer.deserialize(buffer, layerState)

  #   * `load` A {Boolean}, `true` to asynchronously load the buffer from disk
  #     after initialization.
  #   * `text` The initial {String} text of the buffer.
  constructor: (params) ->
    text = params if typeof params is 'string'

    @emitter = new Emitter
