Merge pull request #1643 from zilongshanren/remove-unneeded-warning-msg

remove unneeded warning msg
This commit is contained in:
Jare Guo
2017-05-11 17:27:38 +08:00
committed by GitHub
3 changed files with 2 additions and 17 deletions
+1 -4
View File
@@ -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;
// }
// }
-8
View File
@@ -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.
+1 -5
View File
@@ -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();
},