Merge pull request #2600 from jareguo/master

refine api doc
This commit is contained in:
Jare Guo
2018-04-26 12:44:25 +08:00
committed by GitHub
3 changed files with 1 additions and 3 deletions
+1 -1
View File
@@ -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
@@ -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;
-1
View File
@@ -41,7 +41,6 @@
*
* cc.log('release');
*
* (好棒棒)<br>
* <br>
* 如需判断脚本是否运行于指定平台,可以用如下表达式:
*