[gnome-maps/wip/mattiasb/eslint2] Lint: No dangling commas in object lits



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

    Lint: No 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 a4f2c74..c9e69c0 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 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]