mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
Merge pull request #1643 from zilongshanren/remove-unneeded-warning-msg
remove unneeded warning msg
This commit is contained in:
+1
-4
@@ -364,9 +364,6 @@ if (CC_DEV) {
|
||||
"4300": "can not found the %s page.", //removePage
|
||||
//RichText: 4400
|
||||
"4400": "Invalid RichText img tag! The sprite frame name can\'t be found in the ImageAtlas!", //_addRichTextImageElement
|
||||
//ToggleGroup: 4500
|
||||
"4500": "Toggle alreay in ToggleGroup. Something bad happened, please report this issue to the Creator developer, thanks.", //addToggle
|
||||
"4501": "Toggle is not in ToggleGroup. Something bad happened, please report this issue to the Creator developer, thanks.", //removeToggle
|
||||
//MissingScript: 4600
|
||||
"4600": "Script attached to '%s' is missing or invalid.", //onLoad
|
||||
//EditBox: 4700
|
||||
@@ -597,4 +594,4 @@ if (CC_DEV) {
|
||||
// } catch (e) {
|
||||
|
||||
// cc._LogInfos = logs;
|
||||
// }
|
||||
// }
|
||||
|
||||
@@ -1288,14 +1288,6 @@ can not found the %s page.
|
||||
|
||||
Invalid RichText img tag! The sprite frame name can't be found in the ImageAtlas!
|
||||
|
||||
### 4500
|
||||
|
||||
Toggle alreay in ToggleGroup. Something bad happened, please report this issue to the Creator developer, thanks.
|
||||
|
||||
### 4501
|
||||
|
||||
Toggle is not in ToggleGroup. Something bad happened, please report this issue to the Creator developer, thanks.
|
||||
|
||||
### 4600
|
||||
|
||||
Script attached to '%s' is missing or invalid.
|
||||
|
||||
@@ -81,9 +81,7 @@ var ToggleGroup = cc.Class({
|
||||
|
||||
addToggle: function (toggle) {
|
||||
var index = this._toggleItems.indexOf(toggle);
|
||||
if (index > -1) {
|
||||
cc.warnID(4500);
|
||||
} else {
|
||||
if (index === -1) {
|
||||
this._toggleItems.push(toggle);
|
||||
}
|
||||
this._allowOnlyOneToggleChecked();
|
||||
@@ -93,8 +91,6 @@ var ToggleGroup = cc.Class({
|
||||
var index = this._toggleItems.indexOf(toggle);
|
||||
if(index > -1) {
|
||||
this._toggleItems.splice(index, 1);
|
||||
} else {
|
||||
cc.warnID(4501);
|
||||
}
|
||||
this._makeAtLeastOneToggleChecked();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user