diff --git a/DebugInfos.js b/DebugInfos.js index 960c57b5ed..3b51bd2f74 100644 --- a/DebugInfos.js +++ b/DebugInfos.js @@ -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 diff --git a/cocos2d/core/components/CCRendererInSG.js b/cocos2d/core/components/CCRendererInSG.js index 81d9fe5156..7adaed58e1 100644 --- a/cocos2d/core/components/CCRendererInSG.js +++ b/cocos2d/core/components/CCRendererInSG.js @@ -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;