mirror of https://github.com/axmolengine/axmol.git
Fix Scale9Sprite's inheritance issue triggered by its constructor
This commit is contained in:
parent
ef0854545b
commit
c7f3c2fa8b
|
@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue