src/display/image.js in entityjs-0.4.0 vs src/display/image.js in entityjs-0.4.1
- old
+ new
@@ -15,10 +15,10 @@
}
return this._image;
},
visible:function(){
- return this._image && this.parent('draw', 'visible');
+ return this._image && this._super('draw', 'visible');
},
draw:function(c){
c.drawImage(this._image, -this.regX, -this.regY, this.sizeX, this.sizeY);
return this;
\ No newline at end of file