From 0f97a7d476841048bbc421cff8842ea72864a9d3 Mon Sep 17 00:00:00 2001 From: Nan Wang Date: Tue, 16 Aug 2016 10:10:55 +0800 Subject: [PATCH] fix cc.game api typo --- cocos2d/core/CCGame.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cocos2d/core/CCGame.js b/cocos2d/core/CCGame.js index 2bbbafd0b8..46c36da7ac 100644 --- a/cocos2d/core/CCGame.js +++ b/cocos2d/core/CCGame.js @@ -36,12 +36,12 @@ var _isMusicPlaying = false; * !#zh 包含游戏主体信息并负责驱动游戏的游戏对象。 * @class Game */ -var game = /** @lends cc.game# */{ +var game = { /** * Event triggered when game hide to background. * Please note that this event is not 100% guaranteed to be fired. - * @property + * @property EVENT_HIDE * @type {String} * @example * cc.game.on(cc.game.EVENT_HIDE, function () { @@ -54,21 +54,21 @@ var game = /** @lends cc.game# */{ /** * Event triggered when game back to foreground * Please note that this event is not 100% guaranteed to be fired. - * @property + * @property EVENT_SHOW * @type {String} */ EVENT_SHOW: "game_on_show", /** * Event triggered after game inited, at this point all engine objects and game scripts are loaded - * @property + * @property EVENT_GAME_INITED * @type {String} */ EVENT_GAME_INITED: "game_inited", /** * Event triggered after renderer inited, at this point you will be able to use the render context - * @property + * @property EVENT_RENDERER_INITED * @type {String} */ EVENT_RENDERER_INITED: "renderer_inited", @@ -82,7 +82,7 @@ var game = /** @lends cc.game# */{ /** * Key of config - * @property + * @property CONFIG_KEY * @type {Object} */ CONFIG_KEY: {