[gnome-maps/wip/mattiasb/eslint2] Lint: Fix all undeclared variable errors
- From: Mattias Bengtsson <mattiasb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/mattiasb/eslint2] Lint: Fix all undeclared variable errors
- Date: Sun, 31 Jan 2016 22:49:14 +0000 (UTC)
commit 3ea68d5247c203573301e52f53be27d103c07c1f
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 d194884..2f50843 100644
--- a/src/osmConnection.js
+++ b/src/osmConnection.js
@@ -217,7 +217,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 9ace1e2..f45a162 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]