From ffbb18a0f8750064271bc2494089f52b3cd4371b Mon Sep 17 00:00:00 2001 From: Ben Ogle Date: Tue, 9 Sep 2014 14:16:10 -0700 Subject: [PATCH] Remove event comments, add method section comment --- src/project.coffee | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) 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())