New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updated code documentation #20
Conversation
@@ -16,18 +19,21 @@ var SELF = wb.datamodel.Entity = function WbDataModelEntity() { | |||
|
|||
/** | |||
* String to identify this type of Entity. | |||
* @type {string} | |||
* @type {null} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's odd. In the subclasses this is a string. I think this must be {string|null}
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was not sure about that. It is never set via a constructor and stands for itself here but it probably makes more sense to keep it on {string}
.
I read everything and left a few comments. Looking forward to merge this. Good work. |
@@ -113,7 +122,8 @@ wb.datamodel.EntityId = util.inherit( | |||
} ); | |||
|
|||
/** | |||
* @see dataValues.DataValue.newFromJSON | |||
* @inheritdoc | |||
* @static | |||
*/ | |||
wb.datamodel.EntityId.newFromJSON = function( json ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing param/return documentation. (wb.datamodel.EntityId.TYPE below needs documentation as well)
1ccd2dc
to
d8a3026
Compare
I don't agree with dropping the |
Allows generating a proper documentation using JSDuck. (A custom JSDuck tag class for "licence" tag should be applied upon generation.)
1f380b4
to
271b1e6
Compare
Allows generating a proper documentation using JSDuck.
(A custom JSDuck tag class for "licence" tag should be applied upon generation.)