[gnome-documents] preview: Increase scope of presentCurrentId



commit a399a86cedd4b67aa5aaec695eeceacbc12d5ad8
Author: Alessandro Bono <abono gnome org>
Date:   Fri Jun 3 13:55:27 2016 +0200

    preview: Increase scope of presentCurrentId
    
    Fixes bug introduced in commit 34d7c0a
    
    https://bugzilla.gnome.org/show_bug.cgi?id=767083

 src/preview.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/preview.js b/src/preview.js
index 2d02997..8ffca57 100644
--- a/src/preview.js
+++ b/src/preview.js
@@ -147,7 +147,7 @@ const PreviewView = new Lang.Class({
 
         this._togglePresentation = Application.application.lookup_action('present-current');
         if (!Application.application.isBooks) {
-            let presentCurrentId = Application.application.connect('action-state-changed::present-current',
+            var presentCurrentId = Application.application.connect('action-state-changed::present-current',
                 Lang.bind(this, this._onPresentStateChanged));
         }
 


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