[gnome-shell] messageTray: Clean up and consolidate code for tween	completion
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gnome-shell] messageTray: Clean up and consolidate code for tween	completion
- Date: Sat,  6 Oct 2012 19:09:38 +0000 (UTC)
commit be24ee435cce33d9ecc246566a259b9dc2291581
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Tue Oct 2 19:17:16 2012 -0300
    messageTray: Clean up and consolidate code for tween completion
    
    https://bugzilla.gnome.org/show_bug.cgi?id=685341
 js/ui/messageTray.js |   10 +---------
 1 files changed, 1 insertions(+), 9 deletions(-)
---
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index 5e92141..982940a 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -2141,17 +2141,9 @@ const MessageTray = new Lang.Class({
     },
 
     _hideDesktopClone: function(now) {
-        if (now) {
-            this._desktopClone.destroy();
-            this._desktopClone = null;
-            this._desktopCloneState = State.HIDDEN;
-            this._bottomMonitorGeometry = null;
-            return;
-        }
-
         this._tween(this._desktopClone, '_desktopCloneState', State.HIDDEN,
                     { y: 0,
-                      time: ANIMATION_TIME,
+                      time: now ? 0 : ANIMATION_TIME,
                       transition: 'easeOutQuad',
                       onComplete: Lang.bind(this, function() {
                           this._desktopClone.destroy();
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]