From dfc51ef24348c3074d36eedaf735e38706eab6af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Tue, 17 Mar 2015 05:31:02 +0100 Subject: [PATCH] messageTray: Minor cleanup Chain up to the parent instead of setting up a second signal connection. --- js/ui/messageTray.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index d809ca88b..1256a13a6 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -1128,7 +1128,6 @@ const NotificationBanner = new Lang.Class({ this.parent(notification); this.actor.add_style_class_name('notification-banner'); - this.actor.connect('destroy', Lang.bind(this, this._onDestroyed)); this._buttonBox = null; @@ -1145,7 +1144,8 @@ const NotificationBanner = new Lang.Class({ })); }, - _onDestroyed: function() { + _onDestroy: function() { + this.parent(); this.notification.disconnect(this._activatedId); },