[gnome-documents/gnome-3-4] embed: code cleanup



commit 0b54813b71b8d495b58680b6e5c2edff50f1a2f2
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Sat Mar 24 19:19:20 2012 -0400

    embed: code cleanup

 src/embed.js |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/embed.js b/src/embed.js
index 1ec6c77..f78fd53 100644
--- a/src/embed.js
+++ b/src/embed.js
@@ -175,12 +175,11 @@ ViewEmbed.prototype  = {
             this._motionTimeoutId = 0;
         }
 
-        if (fullscreen)
+        if (fullscreen) {
             this._filter.start();
-        else
+        } else {
             this._filter.stop();
 
-        if (!fullscreen) {
             this._destroyFullscreenToolbar();
             this._destroyPreviewEmbed();
         }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]