Merge pull request #2012 from knoxHuang/v1.6

update remove toggleItems tips for fireball/issues/6416
This commit is contained in:
Jare Guo
2017-09-28 05:11:19 -05:00
committed by GitHub
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -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;
}
+1 -1
View File
@@ -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;
}
}