[gnome-documents] edit: don't use undeclared variables



commit 9fd8bfaf78b9c1bcc4cb7e9ad75e1708f6727198
Author: Cosimo Cecchi <cosimo endlesm com>
Date:   Tue Dec 23 21:16:21 2014 +0800

    edit: don't use undeclared variables

 src/edit.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/edit.js b/src/edit.js
index 4affe51..684f590 100644
--- a/src/edit.js
+++ b/src/edit.js
@@ -50,8 +50,8 @@ const EditView = new Lang.Class({
         this.widget = new Gtk.Overlay();
         this.widget.get_style_context().add_class('documents-scrolledwin');
 
-        context = WebKit.WebContext.get_default();
-        cookie_manager = context.get_cookie_manager();
+        let context = WebKit.WebContext.get_default();
+        let cookie_manager = context.get_cookie_manager();
         let jarfile = GLib.build_filenamev([GLib.get_user_cache_dir(), 'gnome-documents', 'cookies.sqlite']);
         cookie_manager.set_persistent_storage(jarfile, WebKit.CookiePersistentStorage.SQLITE);
 


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