[gnome-maps/wip/mattiasb/eslint-2.0-2: 3/5] Lint: Fix all undeclared variable errors



commit 7cef5d872dd009aba76b60609ff177f9b7c954a4
Author: Mattias Bengtsson <mattias jc bengtsson gmail com>
Date:   Sun Jan 31 23:27:29 2016 +0100

    Lint: Fix all undeclared variable errors
    
    The ESLint recommended settings disallows using undeclared variables
    that it doesn't know about. This is a good thing since that likely
    is a bug.
    
    Fix all (two) undeclared variable errors.

 src/osmConnection.js |    2 +-
 src/utils.js         |    1 -
 2 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/osmConnection.js b/src/osmConnection.js
index cbddeea..0303ac4 100644
--- a/src/osmConnection.js
+++ b/src/osmConnection.js
@@ -219,7 +219,7 @@ const OSMConnection = new Lang.Class({
     },
 
     _getDeleteFunction: function(object, type) {
-        return type + '/' + id;
+        return type + '/' + object.id;
     },
 
     requestOAuthToken: function(callback) {
diff --git a/src/utils.js b/src/utils.js
index 41453d8..e20e4e1 100644
--- a/src/utils.js
+++ b/src/utils.js
@@ -281,7 +281,6 @@ function _load_http_icon(icon, loadCompleteCallback) {
         try {
             let pixbuf = GdkPixbuf.Pixbuf.new_from_stream(stream, null);
 
-            _iconStore[icon.file.get_uri()] = pixbuf;
             loadCompleteCallback(pixbuf);
         } catch(e) {
             log("Failed to load pixbuf: " + e);


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