Skip to content
This repository has been archived by the owner on Jul 15, 2019. It is now read-only.

Commit

Permalink
Add @method docblocks
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Ridgway committed Aug 15, 2014
1 parent 44ff5ef commit 16d00d2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion utils/BaseStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ var util = require('util'),

/**
* @class BaseStore
* @extends EventEmitter
* @param dispatcher The dispatcher interface
* @constructor
*/
Expand All @@ -24,6 +25,7 @@ util.inherits(BaseStore, EventEmitter);

/**
* Add a listener for the change event
* @method addChangeListener
* @param {Function} callback
*/
BaseStore.prototype.addChangeListener = function(callback) {
Expand All @@ -32,6 +34,7 @@ BaseStore.prototype.addChangeListener = function(callback) {

/**
* Remove a listener for the change event
* @method removeChangeListener
* @param {Function} callback
*/
BaseStore.prototype.removeChangeListener = function(callback) {
Expand All @@ -40,9 +43,10 @@ BaseStore.prototype.removeChangeListener = function(callback) {

/**
* Emit a change event
* @method emitChange
*/
BaseStore.prototype.emitChange = function() {
this.emit(CHANGE_EVENT);
};

module.exports = BaseStore;
module.exports = BaseStore;
3 changes: 2 additions & 1 deletion utils/createStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ var util = require('util'),

/**
* Helper for creating a store class
* @method createStore
* @param {Object} spec
* @param {String} spec.storeName The name of the store
* @param {Object} spec.handlers Hash of action name to method name of action handlers
Expand Down Expand Up @@ -44,4 +45,4 @@ module.exports = function createStore(spec) {
});

return Store;
};
};

0 comments on commit 16d00d2

Please sign in to comment.