{"action":"opened","issue":{"url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/10794","labels_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/10794/labels{/name}","comments_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/10794/comments","events_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/10794/events","html_url":"https://github.com/cocos2d/cocos2d-x/issues/10794","id":60470720,"number":10794,"title":"do not require Node name's to be of length > 0 ","user":{"login":"ginobean","id":1667077,"avatar_url":"https://avatars.githubusercontent.com/u/1667077?v=3","gravatar_id":"","url":"https://api.github.com/users/ginobean","html_url":"https://github.com/ginobean","followers_url":"https://api.github.com/users/ginobean/followers","following_url":"https://api.github.com/users/ginobean/following{/other_user}","gists_url":"https://api.github.com/users/ginobean/gists{/gist_id}","starred_url":"https://api.github.com/users/ginobean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ginobean/subscriptions","organizations_url":"https://api.github.com/users/ginobean/orgs","repos_url":"https://api.github.com/users/ginobean/repos","events_url":"https://api.github.com/users/ginobean/events{/privacy}","received_events_url":"https://api.github.com/users/ginobean/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-10T09:20:29Z","updated_at":"2015-03-10T09:20:29Z","closed_at":null,"body":"I notice in CCNode.cpp that there are about 3 lines that have this assertion in them:\r\n``` CCASSERT(name.length() != 0, \"Invalid name\");```\r\n\r\nI can think of cases where I don't necessarily want to give every node a unique name. And in those cases, I may want to find those children that have a name length of zero. To me this seems to a valid corner case.\r\n\r\nIt seems like, in this case, you're dictating policy above and beyond what is actually needed for the proper operation of the cocos2d-x engine.\r\n\r\nAlso, from a consistency standpoint, it doesn't make sense that you can add a child having a name of empty string, yet then be unable to find or remove that child by that same name of empty string.\r\n\r\n"}}