[gnome-shell/wip/paging-release: 74/74] PaginationScrollView: popdown collection only if not null



commit 82e9b1caa4f0916501029e3f15abc32c3a644a31
Author: Carlos Soriano <carlos soriano89 gmail com>
Date:   Mon Aug 12 20:13:22 2013 +0200

    PaginationScrollView: popdown collection only if not null

 js/ui/appDisplay.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index fd6f38e..08ba205 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -452,9 +452,9 @@ const PaginationScrollView = new Lang.Class({
     },
 
     goToPage: function(pageNumber, action) {
-        if(this._currentPage != pageNumber && this._pages.displayingPopup) {
+        if(this._currentPage != pageNumber && this._pages.displayingPopup && this._currentPopup) {
             this._currentPopup.popdown();
-        } else if(this._pages.displayingPopup){
+        } else if(this._pages.displayingPopup && this._currentPopup){
             return;
         }
         let velocity;


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