diff --git a/js/ui/dash.js b/js/ui/dash.js index b89040bb6..43b7c4450 100644 --- a/js/ui/dash.js +++ b/js/ui/dash.js @@ -50,6 +50,10 @@ var DashItemContainer = new Lang.Class({ this._childScale = 0; this._childOpacity = 0; this.animatingOut = false; + + this.connect('destroy', () => { + this.label.destroy(); + }); }, vfunc_allocate: function(box, flags) { @@ -177,11 +181,6 @@ var DashItemContainer = new Lang.Class({ }); }, - destroy: function() { - this.label.destroy(); - this.parent(); - }, - animateOutAndDestroy: function() { this.label.hide();