Improve child removal logic for FloatingUIPanels.

This commit is contained in:
Zander Otavka 2015-08-05 10:25:33 -07:00
parent eab35d03d4
commit 5778502c54

View file

@ -448,9 +448,7 @@
that.prototype.removeChild = function(child) {
var i = this._children.indexOf(child);
if (i >= 0) {
if (child instanceof Overlay || child instanceof FloatingUIPanel) {
Overlays.setAttachedPanel(child._id, 0);
}
Overlays.setAttachedPanel(child._id, 0);
this._children.splice(i, 1);
}
};