From 2900055a9c9354beee2f11d5143c6cd51cfe08a8 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Mon, 11 May 2015 00:59:53 +0200 Subject: Reorder functions --- extension.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/extension.js b/extension.js index bc89de1..e3284e7 100644 --- a/extension.js +++ b/extension.js @@ -94,14 +94,6 @@ const ISS_Above = new GObject.Class({ this.connect('processed_data', Lang.bind(this, this.processResult)); }, - run: function() { - this.getISScoords(function () { - print('run: processing new coords'); - this.task_queue = 1; - this.processResult(); - }); - }, - getISScoords: function (cb_process) { let self = this; let iss_api = Gio.file_new_for_uri(API_URL); @@ -117,6 +109,14 @@ const ISS_Above = new GObject.Class({ }); }, + run: function() { + this.getISScoords(function () { + print('run: processing new coords'); + this.task_queue = 1; + this.processResult(); + }); + }, + onLocationUpdated: function (proxy, sender, [oldPath, newPath]) { let geoclueLocation = new LocationProxy(Gio.DBus.system, "org.freedesktop.GeoClue2", -- cgit