Javascript methods, classes and events
Posted
by Randy Gurment
on Stack Overflow
See other posts from Stack Overflow
or by Randy Gurment
Published on 2010-04-17T12:41:28Z
Indexed on
2010/04/17
12:43 UTC
Read the original article
Hit count: 178
JavaScript
Hi,
how should I document this piece of code:
// Is this class?
colors = {
// Is this method?
"red" : function() {
// Do something...
}
// Still method?
"black" : {
// So what is this?
"black-1" : function() { /* Do something */ }
}
}
I am using YUI Doc.
These tags are available
- @module
- @class
- @method
- @event
- @property
© Stack Overflow or respective owner