-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #47 from qbradq/master
Event Support, Fixes
- Loading branch information
Showing
5 changed files
with
92 additions
and
8 deletions.
There are no files selected for viewing
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/** | ||
* A function in an evented system. | ||
* | ||
* @fires someEvent | ||
* @fires someOtherEvent | ||
* @listens someGlobalEvent | ||
* @listens SomeClass#event:myEvent | ||
* @throws {Error} Throws on error | ||
*/ | ||
function foo() {} | ||
|
||
/** | ||
* Some random event. | ||
* | ||
* @event someEvent | ||
* @type {String} | ||
*/ | ||
|
||
/** | ||
* Some other random event. | ||
* | ||
* @event someOtherEvent | ||
* @type {Object} | ||
* @property {String} type The type of event | ||
* @property {boolean} important Is this event important? | ||
*/ | ||
|
||
/** | ||
* A global event with no defined type. | ||
* | ||
* @event someGlobalEvent | ||
*/ | ||
|
||
/** | ||
* A class-specific event | ||
* | ||
* @event SomeClass#event:MyEvent | ||
*/ |