[gnome-documents] all: minor coding style fixes



commit e6a181c86a00befe0f0367f09464c6cbd9ff11fd
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Fri Feb 8 13:36:58 2013 -0500

    all: minor coding style fixes

 src/edit.js       |    2 +-
 src/embed.js      |    2 +-
 src/selections.js |   20 ++++++++++----------
 3 files changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/src/edit.js b/src/edit.js
index e5b7144..5c5b8dd 100644
--- a/src/edit.js
+++ b/src/edit.js
@@ -57,7 +57,7 @@ const EditView = new Lang.Class({
         this._session = WebKit.get_default_session ();
         Soup.Session.prototype.add_feature.call(this._session, new Soup.ProxyResolverDefault());
         Soup.Session.prototype.remove_feature.call(this._session, new Soup.CookieJar());
-        let jarfile = GLib.build_filenamev([GLib.get_user_cache_dir(), 'gnome-documents', 'cookies.sqlite'])
+        let jarfile = GLib.build_filenamev([GLib.get_user_cache_dir(), 'gnome-documents', 'cookies.sqlite']);
         this._cookieJar = new Soup.CookieJarDB({ filename: jarfile, read_only: false });
         Soup.Session.prototype.add_feature.call(this._session, this._cookieJar);
 
diff --git a/src/embed.js b/src/embed.js
index cbe20f2..d83be91 100644
--- a/src/embed.js
+++ b/src/embed.js
@@ -367,7 +367,7 @@ const Embed = new Lang.Class({
         case WindowMode.WindowMode.NONE:
             break;
          default:
-            throw(new Error('Not handled'))
+            throw(new Error('Not handled'));
             break;
         }
     },
diff --git a/src/selections.js b/src/selections.js
index 950d333..f61e027 100644
--- a/src/selections.js
+++ b/src/selections.js
@@ -933,16 +933,16 @@ const SelectionToolbar = new Lang.Class({
     },
 
    _onToolbarShare: function(widget) {
-	    let dialog = new Sharing.SharingDialog();
-        this._fadeOut();
-
-        dialog.widget.connect('response', Lang.bind(this,
-            function(widget, response) {
-                if (response == Gtk.ResponseType.OK) {
-                    dialog.widget.destroy();
-                    this._fadeIn();
-                }
-            }));
+       let dialog = new Sharing.SharingDialog();
+       this._fadeOut();
+
+       dialog.widget.connect('response', Lang.bind(this,
+           function(widget, response) {
+               if (response == Gtk.ResponseType.OK) {
+                   dialog.widget.destroy();
+                   this._fadeIn();
+               }
+           }));
     },
 
     _onToolbarPrint: function(widget) {


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