mirror of https://github.com/zulip/zulip.git
settings_panel_menu: Remove leftover angry debugging assertions.
Apparently I forgot to remove these from commit
0b4483c8d2
(#15920).
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
bb46b21123
commit
b3ae3d6de9
|
@ -15,9 +15,6 @@ class SettingsPanelMenu {
|
||||||
this.main_elem = opts.main_elem;
|
this.main_elem = opts.main_elem;
|
||||||
this.hash_prefix = opts.hash_prefix;
|
this.hash_prefix = opts.hash_prefix;
|
||||||
this.curr_li = this.main_elem.children("li").eq(0);
|
this.curr_li = this.main_elem.children("li").eq(0);
|
||||||
if (this.curr_li === undefined) {
|
|
||||||
throw new Error("CURR_LI IS UNDEFINED RHJRWKTDSF");
|
|
||||||
}
|
|
||||||
|
|
||||||
this.main_elem.on("click", "li[data-section]", (e) => {
|
this.main_elem.on("click", "li[data-section]", (e) => {
|
||||||
const section = $(e.currentTarget).attr("data-section");
|
const section = $(e.currentTarget).attr("data-section");
|
||||||
|
@ -102,9 +99,6 @@ class SettingsPanelMenu {
|
||||||
}
|
}
|
||||||
|
|
||||||
this.curr_li = this.li_for_section(section);
|
this.curr_li = this.li_for_section(section);
|
||||||
if (this.curr_li === undefined) {
|
|
||||||
throw new Error("CURR_LI IS UNDEFINED WEJRGWKJ");
|
|
||||||
}
|
|
||||||
|
|
||||||
this.main_elem.children("li").removeClass("active");
|
this.main_elem.children("li").removeClass("active");
|
||||||
this.curr_li.addClass("active");
|
this.curr_li.addClass("active");
|
||||||
|
|
Loading…
Reference in New Issue