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



commit 2c637bea5753ae8fe7e716f90f19c99f2e2ab17f
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.

 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]