From d0ed2a87cd5de08396e99d452755bc4970f5521d Mon Sep 17 00:00:00 2001 From: Matt Colyer Date: Tue, 22 Oct 2013 15:46:04 -0700 Subject: [PATCH] :memo: Remove curly braces for core objects --- src/directory.coffee | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/directory.coffee b/src/directory.coffee index b8a11dd3f..8492e4616 100644 --- a/src/directory.coffee +++ b/src/directory.coffee @@ -12,17 +12,19 @@ class Directory path: null realPath: null - # Public: Configures an new Directory instance, no files are accessed. + # Public: Configures a new Directory instance, no files are accessed. # # * path: - # A {String} representing the file directory + # A String containing the absolute path to the directory. # + symlink: - # A {Boolean} indicating if the path is a symlink (defaults to false). + # A Boolean indicating if the path is a symlink (defaults to false). constructor: (@path, @symlink=false) -> @on 'first-contents-changed-subscription-will-be-added', => + # Triggered by emissary, when a new contents-changed listener attaches @subscribeToNativeChangeEvents() @on 'last-contents-changed-subscription-removed', => + # Triggered by emissary, when the last contents-changed listener detaches @unsubscribeFromNativeChangeEvents() # Public: Returns the basename of the directory. @@ -78,7 +80,7 @@ class Directory # # Note: It follows symlinks. # - # Returns an {Array} of {Files}. + # Returns an Array of {Files}. getEntries: -> directories = [] files = []