From 54bd44fd659cc33f5de5e95a99cb33a680ca7598 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E5=AE=B6=E8=BE=89?= <35832931+ColinCollins@users.noreply.github.com> Date: Wed, 30 May 2018 14:48:18 +0800 Subject: [PATCH] correct the creator-api-tsd context (#2765) --- CCDebugger.js | 4 ++++ cocos2d/core/platform/CCSys.js | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/CCDebugger.js b/CCDebugger.js index b1e2cfa9ab..b4bc5ceaf6 100644 --- a/CCDebugger.js +++ b/CCDebugger.js @@ -93,6 +93,10 @@ cc.DebugMode = Enum({ ERROR_FOR_WEB_PAGE: 6 }); +/** + * @module cc + */ + /** * !#en Init Debug setting. * !#zh 设置调试模式。 diff --git a/cocos2d/core/platform/CCSys.js b/cocos2d/core/platform/CCSys.js index 87c98f7ed1..f6d93350c8 100644 --- a/cocos2d/core/platform/CCSys.js +++ b/cocos2d/core/platform/CCSys.js @@ -29,6 +29,7 @@ if (cc.sys) return; /** * System variables * @class sys + * @main * @static */ cc.sys = {}; @@ -543,6 +544,10 @@ sys.NetworkType = { WWAN: 2 }; +/** + * @class sys + */ + /** * !#en * Get the battery level of current device, return 1.0 if failure.