Skip to content

Commit

Permalink
Chain `emitter.into(target) for #3 like the other emitter methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanve committed May 3, 2014
1 parent 2bc7d93 commit 91f88b6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,13 @@
};

/**
* @this {Energy|Object|Function} source emitter
* @param {Object|Function} target to convert into emitter
* @return {Object|Function} target converted into emitter
* @this {Object|Energy|Function} source emitter or emitter-like
* @param {Object|Energy|Function} target to convert into emitter
* @return {Object|Energy|Function} source for chaining
*/
emitter['into'] = function(target) {
return defaults(target, this);
defaults(target, this);
return this;
};

/**
Expand Down

0 comments on commit 91f88b6

Please sign in to comment.