mirror of
https://github.com/wassname/phaser.git
synced 2026-07-03 17:10:40 +08:00
Added Group.sort, can sort the Group based on any given numeric property (x, y, health), finally you can do depth-sorting :)
This commit is contained in:
@@ -155,7 +155,7 @@ Phaser.BitmapText.prototype.destroy = function() {
|
||||
this.group.remove(this);
|
||||
}
|
||||
|
||||
if (this.canvas.parentNode)
|
||||
if (this.canvas && this.canvas.parentNode)
|
||||
{
|
||||
this.canvas.parentNode.removeChild(this.canvas);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user