[gnome-maps/wip/mattiasb/eslint-2.0-2: 36/40] Lint: Fix dangling commas in object lits



commit 2ffb9dfb5cbcf5f0fbe77241853049d0d2e0caf1
Author: Mattias Bengtsson <mattias jc bengtsson gmail com>
Date:   Sun Jan 31 23:44:48 2016 +0100

    Lint: Fix dangling commas in object lits
    
    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.

 src/layersPopover.js       |    2 +-
 src/location.js            |    2 +-
 src/notificationManager.js |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/layersPopover.js b/src/layersPopover.js
index 81bcede..d8585e1 100644
--- a/src/layersPopover.js
+++ b/src/layersPopover.js
@@ -119,7 +119,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 f33f111..f57d90b 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 15247c4..43ab293 100644
--- a/src/notificationManager.js
+++ b/src/notificationManager.js
@@ -50,5 +50,5 @@ const NotificationManager = new Lang.Class({
             }).bind(this));
         }
         notification.reveal();
-    },
+    }
 });


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