-
-
Save arcanis/ffb1b5829f26ca6b4936 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @class foo | |
*/ | |
var foo = function () { | |
}; | |
/** | |
* Throw a snowball. | |
* | |
* @fires foo#event:snowball | |
*/ | |
foo.prototype.snowball = function () { | |
/** | |
* @event foo#snowball | |
*/ | |
this.emit('snowball', {}); | |
}; | |
/** | |
* Throw a brick. | |
* | |
* @fires foo#event:brick | |
*/ | |
foo.prototype.brick = function () { | |
/** | |
* @event foo#brick | |
*/ | |
this.emit('brick', {}); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment