3.6就存在的问题
js-bindings\script\studio\jsb_studio_create_apis.js
ccs.Skin.prototype._ctor = function(fileName, rect) {
if (fileName == null || fileName == "") {
ccs.Skin.prototype.init.call(this);
} else {
if(fileName == "#"){
ccs.Skin.prototype.initWithSpriteFrameName.call(this, fileName.substr(1));
} else {
//此处有大坑。rect ? 不传rect : 把null传进去 让程序崩掉
rect ? ccs.Skin.prototype.initWithFile.call(this, fileName)
: ccs.Skin.prototype.initWithFile.call(this, fileName, rect);
}
}
};
3.6的cc.Follow.prototype._ctor也是同样问题,3.7看代码是改了。
看来测试组都是应付了事啊,这么明显的都没测出来。一个覆盖测试就都能测出来的东西