diff --git a/src/project.coffee b/src/project.coffee index f21e65c5e..ddf09ab6e 100644 --- a/src/project.coffee +++ b/src/project.coffee @@ -20,19 +20,6 @@ Git = require './git' # Extended: Represents a project that's opened in Atom. # # An instance of this class is always available as the `atom.project` global. -# -# ## Events -# -# ### path-changed -# -# Extended: Emit when the project's path has changed. Use {::getPath} to get the new path -# -# ### buffer-created -# -# Extended: Emit when a buffer is created. For example, when {::open} is called, this is fired. -# -# * `buffer` {TextBuffer} the new buffer that was created. -# module.exports = class Project extends Model atom.deserializers.add(this) @@ -95,6 +82,10 @@ class Project extends Model deprecate 'Project::on is deprecated. Use event subscription methods instead.' EmitterMixin::on.apply(this, arguments) + ### + Section: Methods + ### + serializeParams: -> path: @path buffers: _.compact(@buffers.map (buffer) -> buffer.serialize() if buffer.isRetained())