Skip to content

Commit

Permalink
refine api doc
Browse files Browse the repository at this point in the history
  • Loading branch information
jareguo committed Apr 26, 2018
1 parent 0cbdd11 commit 5da0f87
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion cocos2d/core/components/CCButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ var Transition = cc.Enum({
*
* // Add an event to the button.
* button.node.on(cc.Node.EventType.TOUCH_START, function (event) {
* cc.log("This is a callback after the trigger event");
* cc.log("This is a callback after the trigger event");
* });
* // You could also add a click event
Expand Down
1 change: 0 additions & 1 deletion docs/cocos2d/core/platform/CCEnum/Enum.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ const {ccclass, property} = cc._decorator;
@ccclass
class NewScript extends cc.Component {
@property({
default: Direction.Up,
type: cc.Enum(Direction) // call cc.Enum
})
direction: Direction = Direction.Up;
Expand Down
1 change: 0 additions & 1 deletion predefine.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
*
* cc.log('release');
*
* (好棒棒)<br>
* <br>
* 如需判断脚本是否运行于指定平台,可以用如下表达式:
*
Expand Down

0 comments on commit 5da0f87

Please sign in to comment.