Merge pull request #11111 from mehcode/patch-1

Default the options parameter to an empty object
This commit is contained in:
Antonio Scandurra
2016-03-10 09:39:54 +01:00

View File

@@ -71,7 +71,7 @@ class Project extends Model
@subscribeToBuffer(buffer) for buffer in @buffers
@setPaths(state.paths)
serialize: (options) ->
serialize: (options={}) ->
deserializer: 'Project'
paths: @getPaths()
buffers: _.compact(@buffers.map (buffer) -> buffer.serialize({markerLayers: options.isUnloading is true}) if buffer.isRetained())