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:
Anders Kaseorg 2020-07-31 23:04:39 -07:00 committed by Tim Abbott
parent bb46b21123
commit b3ae3d6de9
1 changed files with 0 additions and 6 deletions

View File

@ -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");