CCControl* CCControl::create() { CCControl* pRet = new CCControl(); if (pRet && pRet->init()) { pRet->autorelease(); return pRet; } else { CC_SAFE_DELETE(pRet); return NULL; } }
CCControl* CCControl::create() { CCControl* pRet = new CCControl(); if (pRet && pRet->init()) { //DuongNT: assign v8 obj here pRet->assignJavaScriptObject(CLS_CCCONTROL_ID, false); pRet->autorelease(); return pRet; } else { CC_SAFE_DELETE(pRet); return NULL; } }