diff options
author | Philip Chimento <philip@endlessm.com> | 2017-07-07 18:32:06 -0700 |
---|---|---|
committer | Philip Chimento <philip@endlessm.com> | 2017-07-07 18:32:06 -0700 |
commit | 0e1a6cd29da9ed14bee3a816be4d92925cfa4822 (patch) | |
tree | 3e04617bafa3d81c5dfe9b6c9eff7fdb0bc36457 /overrides/endless_private/search_box.js | |
parent | efc16e54a44cc0ae9470495f9d5047be07af274f (diff) |
js: Declare module export variables with "var"
In ES6, variables declared with "const" and "let" go into the "lexical
scope" rather than the normal scope. Therefore, they are not available as
properties on modules. GJS preserves the old behaviour with a warning,
but we should fix our code anyway.
https://phabricator.endlessm.com/T18106
Diffstat (limited to 'overrides/endless_private/search_box.js')
-rw-r--r-- | overrides/endless_private/search_box.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/overrides/endless_private/search_box.js b/overrides/endless_private/search_box.js index e43d456..104f7b8 100644 --- a/overrides/endless_private/search_box.js +++ b/overrides/endless_private/search_box.js @@ -30,7 +30,7 @@ const TITLE_MAX_CHARS_DEFAULT = 255; * search box's alignment is set to Gtk.Align.FILL in either direction. * */ -const SearchBox = new Lang.Class({ +var SearchBox = new Lang.Class({ Name: 'SearchBox', GTypeName: 'EosSearchBox', Extends: Gtk.Entry, |