怎么看cocos js的类支不支持继承,顺便问下ccui.scrollview支持extend吗?

想要扩展一个scrollview,用了ccui.scroview.extend,但是new的时候有报错。我猜是scrollview是不是不支持extend继承,但是又不清楚,所以在这里问下各位大神。顺便问下怎么看一个类支不支持继承。还有cocos js是不是没有文档。
cocos版本 3.11
报错信息:
jsb: ERROR: File …\auto\jsb_cocos2dx_auto.cpp: Line: 4585, Function: js_cocos2dx_Node_getContentSize
js_cocos2dx_Node_getContentSize : Invalid Native Object
(evaluatedOK == JS_FALSE)
代码:
var SingleButtonList = ccui.ScrollView.extend({
//外部参数
reslist:null, //按钮资源列表
selectreslist:null, //选中资源列表
direction:null, //方向 水平从左到右 垂直从上到下 ccui.ScrollView.DIR_VERTICAL ccui.ScrollView.DIR_HORIZONTAL
click_callback:null, //点击回调
width:0, //scrollview宽
height:0, //scrollview高
itemspace:0, //item间隔
itemsize:null, //item尺寸,包含宽高
//内部参数
contentlayer:null, //显示内容层
contentwidth:0, //内容层宽
contentheight:0, //内容层高
contentpos:null, //内容层位置
selectindex:0, //选中下标
startpos:null, //触摸开始位置
currentpos:null, //触摸当前位置
MOVEDMIN:10, //触摸移动的最小距离
currentindex:0, // 显示第一个item的下标
self:null,
ctor:function(reslist,clickcallback,direction,size,itemsize){
this._super();
self = this;
reslist = reslist;
click_callback = clickcallback;
direction = direction;
width = size.width;
height = size.height;
itemsize = itemsize;
},
Init:function(){
this._super();
},
onExist:function(){
this._super();
},
InitListView:function(){

},
onTouchBegan:function(touch, event){
},
onTouchMoved:function(touch,event) {
},
onTouchEnded:function(touch, event){
    var endpos = touch.getLocation();
},
getDistance:function(startpos,endpos) {
},
setContentOffset:function(offset){
},
moveTo:function(index){
    
},
setHeight:function(height){
    height = height;
    return self;
},
setItemSpace:function(space) {
    itemspace = space;
    return self;
},
setItemSize:function(size) {
    itemsize = size;
    return self;
},

});

我写了一个空的继承,并没有报什么错啊……应该可以是继承的吧

var MyListView=ccui.ListView.extend({
	ctor:function(){
		this._super();		
		cc.log("aa");
	}
});

PS:js有api文档,你把后面的版本号改一下就可以链到对应版本(好像最早也就只有到3.10了,我输入3.9就找不到页面了)
http://www.cocos2d-x.org/docs/api-ref/js/V3.13/

好的,明白了。十分感谢