mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2024-11-05 01:56:21 +00:00
Scrub.
Adding slightly heavier function-level comments as a start for API docs.
This commit is contained in:
parent
233025ddcc
commit
89957aed76
@ -13,9 +13,12 @@ Promise = require 'pinkie-promise'
|
||||
|
||||
|
||||
###*
|
||||
An instantiation of a HackMyResume command.
|
||||
An abstract invokable verb.
|
||||
Provides base class functionality for verbs. Provide common services such as
|
||||
error handling, event management, and promise support.
|
||||
@class Verb
|
||||
###
|
||||
|
||||
module.exports = class Verb
|
||||
|
||||
|
||||
@ -39,8 +42,7 @@ module.exports = class Verb
|
||||
|
||||
|
||||
###* Forward subscriptions to the event emitter. ###
|
||||
on: ->
|
||||
@emitter.on.apply @emitter, arguments
|
||||
on: -> @emitter.on.apply @emitter, arguments
|
||||
|
||||
|
||||
|
||||
@ -77,6 +79,7 @@ module.exports = class Verb
|
||||
|
||||
|
||||
|
||||
###* Has an error occurred during this verb invocation? ###
|
||||
hasError: -> @errorCode || @errorObj
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user