diff --git a/js/ui/dash.js b/js/ui/dash.js index 0c89545a2..b89040bb6 100644 --- a/js/ui/dash.js +++ b/js/ui/dash.js @@ -178,15 +178,12 @@ var DashItemContainer = new Lang.Class({ }, destroy: function() { - if (this.label) - this.label.destroy(); - + this.label.destroy(); this.parent(); }, animateOutAndDestroy: function() { - if (this.label) - this.label.destroy(); + this.label.hide(); if (this.child == null) { this.destroy();