[gnome-documents] application: the miner instances don't need to be class members



commit 69d2269f1ae0e73e9a4700650d4ffe532686212e
Author: Debarshi Ray <debarshir gnome org>
Date:   Wed May 30 18:32:59 2012 +0200

    application: the miner instances don't need to be class members
    
    Fixes: https://bugzilla.gnome.org/666535

 src/application.js |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/application.js b/src/application.js
index cdf5ee0..e44fb27 100644
--- a/src/application.js
+++ b/src/application.js
@@ -198,12 +198,12 @@ const Application = new Lang.Class({
         Global.notificationManager = new Notifications.NotificationManager();
 
         // startup a refresh of the gdocs cache
-        this._gdataMiner = new GDataMiner.GDataMiner();
-        this._refreshMinerNow(this._gdataMiner);
+        let gdataMiner = new GDataMiner.GDataMiner();
+        this._refreshMinerNow(gdataMiner);
 
         // startup a refresh of the skydrive cache
-        this._zpjMiner = new ZpjMiner.ZpjMiner();
-        this._refreshMinerNow(this._zpjMiner);
+        let zpjMiner = new ZpjMiner.ZpjMiner();
+        this._refreshMinerNow(zpjMiner);
 
         this._initMenus();
         this._mainWindow = new MainWindow.MainWindow(this.application);



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