[gnome-shell/wip/fmuellner/es6-classes: 12/12] lookingGlass: Don't import Lang by default



commit 7704d7af7cd39b8604d791021e0be9a1808bf71d
Author: Florian Müllner <fmuellner gnome org>
Date:   Tue Nov 27 23:48:44 2018 +0100

    lookingGlass: Don't import Lang by default
    
    With arrow functions, Function.prototype.bind() and ES6 classes, the
    Lang module is rarely needed nowadays.
    
    https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/361

 js/ui/lookingGlass.js | 1 -
 1 file changed, 1 deletion(-)
---
diff --git a/js/ui/lookingGlass.js b/js/ui/lookingGlass.js
index ce1402149..8c5e29402 100644
--- a/js/ui/lookingGlass.js
+++ b/js/ui/lookingGlass.js
@@ -34,7 +34,6 @@ var commandHeader = 'const Clutter = imports.gi.Clutter; ' +
                     'const Meta = imports.gi.Meta; ' +
                     'const Shell = imports.gi.Shell; ' +
                     'const Main = imports.ui.main; ' +
-                    'const Lang = imports.lang; ' +
                     'const Tweener = imports.ui.tweener; ' +
                     /* Utility functions...we should probably be able to use these
                      * in the shell core code too. */


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