Fix Scale9Sprite's inheritance issue triggered by its constructor

This commit is contained in:
pandamicro 2015-05-12 18:04:01 +08:00
parent ef0854545b
commit c7f3c2fa8b
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ cc.Scale9Sprite.prototype._ctor = function(file, rect, capInsets){
this.initWithFile(file, rect, capInsets);
}
}else{
this.init();
cc.Node.prototype.init.call(this);
}
};