Skip to content

Fix documentation issues #3255

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

Merged
merged 9 commits into from
Apr 5, 2016
Merged

Fix documentation issues #3255

merged 9 commits into from
Apr 5, 2016

Conversation

pandamicro
Copy link
Contributor

Moved from #3239

Thanks @TimMensch

TimMensch and others added 9 commits February 12, 2016 20:24
A whole pile of (mostly?) non-controversial documentation fixes.

I am running jsdoc 3.0 on the doc tree to produce a FlowType declaration file (for static type analysis of JavaScript code). The docs are actually quite awesome in how much information they provide; considering how much of the documentation Just Worked, this really isn't that many bugs.

Some of the changes were because FlowType noticed that an inherited class member function signature didn't match the signature of the same function in an ancestor class. Many of the changes were just random typos.

I may have other similar pull requests in the future as I use Cocos2d/html more, and I find more of the documentation that needs to be fixed. In general I think this will just help the docs.

Let me know if you want me to actually submit *text* documentation changes. I could probably be encouraged to document bits of the code as I use them. I wrote an entire 500+ page book on an older (now dead) game SDK, just documenting things as I went, so it's become a bit of a habit.

(cherry picked from commit ec06396)
(cherry picked from commit a9909bb)
(cherry picked from commit 4a1839f)
(cherry picked from commit 5526087)
(cherry picked from commit 543b891)
(cherry picked from commit 94ee8d9)
* Added properties to Point, Size, and Rect.
* Fixed Sprite constructor to properly note an optional parameter.

(cherry picked from commit 3a4bf7e)
* Add constants to cc.game
* Make addSpriteFrames texture parameter optional (and fix the docs)
* Add a "cc.Loader" class that cc.loader is a member of. This way cc.loader can be an instance, so the cc.Loader members don't need to be static.
* Add docs for cc.loader.resPath, .audioPath, and .cache.
* Add docs for cc.game.onResize, and note that .onStart and .onStop can be null.

(cherry picked from commit 063edc4)
(cherry picked from commit aab335a)
(cherry picked from commit fc95a78)
@pandamicro pandamicro mentioned this pull request Apr 5, 2016
@pandamicro pandamicro merged commit ead766d into cocos2d:develop Apr 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants