diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index e07769caa..654afc56b 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -157,6 +157,10 @@ var BaseAppView = GObject.registerClass({ this._items = new Map(); this._orderedItems = []; + + this._animateLaterId = 0; + this._viewLoadedHandlerId = 0; + this._viewIsReady = false; } _childFocused(_actor) { @@ -192,8 +196,6 @@ var BaseAppView = GObject.registerClass({ this._items.set(icon.id, icon); }); - this._animateLaterId = 0; - this._viewLoadedHandlerId = 0; this._viewIsReady = true; this.emit('view-loaded'); } @@ -412,8 +414,6 @@ var AllView = GObject.registerClass({ this._lastOvershootY = -1; this._lastOvershootTimeoutId = 0; - this._viewIsReady = false; - Main.overview.connect('hidden', () => this.goToPage(0)); this._redisplayWorkId = Main.initializeDeferredWork(this, this._redisplay.bind(this));