diff --git a/DebugInfos.js b/DebugInfos.js index 2efd3fe0c0..e2f02ab944 100644 --- a/DebugInfos.js +++ b/DebugInfos.js @@ -617,7 +617,9 @@ if (CC_DEBUG) { "8300": "Should only one camera exists, please check your project.", //cc.Camera.enabled "8301": "Camera does not support Canvas Mode.", //cc.Camera.enabled // AudioEngine: 8400 - "8400": "Wrong type arguments, 'filePath' must be a String." // cc.audioEngine.play + "8400": "Wrong type arguments, 'filePath' must be a String.", // cc.audioEngine.play + // ToggleGroup: 8500 + "8500": "The ToggleGroup.toggleItems api will be removed in v2.0, please obtain toggles in other ways. \uD83D\uDE30", }; cc._LogInfos = logs; } diff --git a/cocos2d/core/components/CCToggleGroup.js b/cocos2d/core/components/CCToggleGroup.js index 12669dbfcd..68b63a507d 100644 --- a/cocos2d/core/components/CCToggleGroup.js +++ b/cocos2d/core/components/CCToggleGroup.js @@ -62,7 +62,7 @@ var ToggleGroup = cc.Class({ */ toggleItems: { get: function () { - cc.warn("The ToggleGroup.toggleItems api will be removed in v2.0, please obtain toggles in other ways. \uD83D\uDE30"); + cc.warnID(8500); return this._toggleItems; } }