refine code

This commit is contained in:
knoxHuang
2017-12-18 11:18:48 +08:00
parent 2223dcd0c8
commit 5843fdcb69
2 changed files with 1 additions and 2 deletions
-1
View File
@@ -113,7 +113,6 @@ if (CC_DEBUG) {
"1633": "Internal error, should not remove unknown node from parent.", //parent
"1634": "addChild: The child to add must be instance of cc.Node, not %s.", //addChild
"1635": "reorderChild: this child is not in children list", // reorderChild
"1636": "Invalid sgNode. It must be an instance of _ccsg.Node", // RendererInSG
//AtlasNode: 1700
"1700": "cc.AtlasNode.updateAtlasValues(): Shall be overridden in subclasses", //_updateAtlasValues
"1701": "", //_initWithTileFile
+1 -1
View File
@@ -96,7 +96,7 @@ var RendererInSG = cc.Class({
_replaceSgNode: function (sgNode) {
if (CC_EDITOR && !(sgNode instanceof _ccsg.Node)) {
throw new Error(cc._LogInfos.e(1636));
throw new Error("Invalid sgNode. It must be an instance of _ccsg.Node");
}
var node = this.node;