From 5da0f872eeadbf4773162d51898d4463ab4828c2 Mon Sep 17 00:00:00 2001 From: Jare Guo Date: Wed, 18 Apr 2018 17:49:00 +0800 Subject: [PATCH] refine api doc --- cocos2d/core/components/CCButton.js | 2 +- docs/cocos2d/core/platform/CCEnum/Enum.js | 1 - predefine.js | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/cocos2d/core/components/CCButton.js b/cocos2d/core/components/CCButton.js index bd94527222..6f87bed714 100644 --- a/cocos2d/core/components/CCButton.js +++ b/cocos2d/core/components/CCButton.js @@ -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 diff --git a/docs/cocos2d/core/platform/CCEnum/Enum.js b/docs/cocos2d/core/platform/CCEnum/Enum.js index 2a3700057f..c598263d2e 100644 --- a/docs/cocos2d/core/platform/CCEnum/Enum.js +++ b/docs/cocos2d/core/platform/CCEnum/Enum.js @@ -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; diff --git a/predefine.js b/predefine.js index c5743f3ce5..e709dba050 100644 --- a/predefine.js +++ b/predefine.js @@ -41,7 +41,6 @@ * * cc.log('release'); * - * (好棒棒)
*
* 如需判断脚本是否运行于指定平台,可以用如下表达式: *