mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Add Public keyword to all exported classes
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
BufferedProcess = require './buffered-process'
|
||||
path = require 'path'
|
||||
|
||||
# Private: Like BufferedProcess, but accepts a node script instead of an
|
||||
# Public: Like BufferedProcess, but accepts a node script instead of an
|
||||
# executable, on Unix which allows running scripts and executables, this seems
|
||||
# unnecessary, but on Windows we have to separate scripts from executables since
|
||||
# it doesn't support shebang strings.
|
||||
|
||||
@@ -2,7 +2,7 @@ ChildProcess = require 'child_process'
|
||||
path = require 'path'
|
||||
_ = require './underscore-extensions'
|
||||
|
||||
# Private: A wrapper which provides buffering for ChildProcess.
|
||||
# Public: A wrapper which provides buffering for ChildProcess.
|
||||
module.exports =
|
||||
class BufferedProcess
|
||||
process: null
|
||||
|
||||
@@ -6,6 +6,7 @@ async = require 'async'
|
||||
rimraf = require 'rimraf'
|
||||
path = require 'path'
|
||||
|
||||
# Public: Useful extensions to node's built-in fs module
|
||||
fsExtensions =
|
||||
# Make the given path absolute by resolving it against the
|
||||
# current working directory.
|
||||
|
||||
@@ -29,7 +29,7 @@ class Project
|
||||
# Private:
|
||||
@deserialize: (state) -> new Project(state)
|
||||
|
||||
# Public:
|
||||
# Public: Find the local path for the given repository URL.
|
||||
@pathForRepositoryUrl: (repoUrl) ->
|
||||
[repoName] = url.parse(repoUrl).path.split('/')[-1..]
|
||||
repoName = repoName.replace(/\.git$/, '')
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
_ = require './underscore-extensions'
|
||||
|
||||
# Public: Mixin for managing subscriptions of event listeners to different objects.
|
||||
#
|
||||
# Support unsubscribe from all register event listeners or just the listeners
|
||||
# registered on a given object.
|
||||
module.exports =
|
||||
subscribeWith: (eventEmitter, methodName, args) ->
|
||||
eventEmitter[methodName](args...)
|
||||
|
||||
Reference in New Issue
Block a user