From 4f76e05058318495502f17194cc765aefe4cb626 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Tue, 29 Jan 2019 22:58:40 +0100 Subject: [PATCH] keyboard: Fix undefined variable in fall-through message Spotted by eslint. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/375 --- js/ui/status/keyboard.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/ui/status/keyboard.js b/js/ui/status/keyboard.js index 0e5b18504..7f830b6df 100644 --- a/js/ui/status/keyboard.js +++ b/js/ui/status/keyboard.js @@ -969,7 +969,8 @@ class InputSourceIndicator extends PanelMenu.Button { } let item; - switch (prop.get_prop_type()) { + let type = prop.get_prop_type(); + switch (type) { case IBus.PropType.MENU: item = new PopupMenu.PopupSubMenuMenuItem(prop.get_label().get_text()); this._buildPropSubMenu(item.menu, prop.get_sub_props());