summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMattias Bengtsson <mattias.jc.bengtsson@gmail.com>2016-01-31 23:44:48 +0100
committerMattias Bengtsson <mattias.jc.bengtsson@gmail.com>2016-02-04 22:28:25 +0100
commit1dacd40e3e0d87a8f7bc86fa4d90db41335a2da2 (patch)
treeacad00a8714293570053bc630ed9a551fc732a3b
parent83afba2e171c56e7cb54fad9ca092818c3750710 (diff)
downloadgnome-maps-wip/mattiasb/eslint2.tar.gz
Lint: No dangling commas in object litswip/mattiasb/eslint2wip/mattiasb/eslint-1.6-2
The ESLint recommended rules includes spitting errors when it sees dangling commas in object literals. Remove all dangling commas in object literals throughout the code.
-rw-r--r--src/layersPopover.js2
-rw-r--r--src/location.js2
-rw-r--r--src/notificationManager.js2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/layersPopover.js b/src/layersPopover.js
index a4f2c748..c9e69c0f 100644
--- a/src/layersPopover.js
+++ b/src/layersPopover.js
@@ -112,7 +112,7 @@ const LayersPopover = new Lang.Class({
_onLoadLayerClicked: function(button) {
let fileChooser = new ShapeLayerFileChooser({
- transient_for: this.get_parent(),
+ transient_for: this.get_parent()
});
if (fileChooser.run() === Gtk.ResponseType.OK) {
diff --git a/src/location.js b/src/location.js
index f33f111c..f57d90be 100644
--- a/src/location.js
+++ b/src/location.js
@@ -42,5 +42,5 @@ const Location = new Lang.Class({
set heading(v) {
this._heading = v;
- },
+ }
});
diff --git a/src/notificationManager.js b/src/notificationManager.js
index 15247c45..43ab2935 100644
--- a/src/notificationManager.js
+++ b/src/notificationManager.js
@@ -50,5 +50,5 @@ const NotificationManager = new Lang.Class({
}).bind(this));
}
notification.reveal();
- },
+ }
});