From: Eamon Xiong Date: Mon, 17 Nov 2025 12:49:32 +0000 (+0800) Subject: luci-theme-material: use arrow function X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=53548203fda49b2aa88251b81ddf1273e8fc7229;p=project%2Fluci.git luci-theme-material: use arrow function Replaced L.bind with an arrow function for simpler syntax and clearer `this` binding. Signed-off-by: Eamon Xiong --- diff --git a/themes/luci-theme-material/htdocs/luci-static/resources/menu-material.js b/themes/luci-theme-material/htdocs/luci-static/resources/menu-material.js index bf39705cd6..21d94570c5 100644 --- a/themes/luci-theme-material/htdocs/luci-static/resources/menu-material.js +++ b/themes/luci-theme-material/htdocs/luci-static/resources/menu-material.js @@ -4,7 +4,7 @@ return baseclass.extend({ __init__() { - ui.menu.load().then(L.bind(this.render, this)); + ui.menu.load().then((tree) => this.render(tree)); }, render(tree) {