Problem extending from ccs.Layout

I need to extend from ccs.Layout, so i added ‘ccs.Layout.extend = cc.Class.extend;’ into jsb_cocos2d_studio.js, but it will throw exception.
cocos2d::CCArray::removeAllObjects()
cocos2d::gui::Widget::~Widget()
cocos2d::gui::Layout::~Layout()
cocos2d::CCObject::release()
cocos2d::ccArrayRemoveAllObjects(cocos2d::ccArray)
cocos2d::CCArray::removeAllObjects()
cocos2d::CCAutoreleasePool::clear()
cocos2d::CCPoolManager::pop()
cocos2d::CCDisplayLinkDirector::mainLoop()
-[CCDirectorCaller doCaller:]