From 8df4e465a3af0544df1b2f47538368cc1d0a2d43 Mon Sep 17 00:00:00 2001 From: Eamon Xiong Date: Mon, 17 Nov 2025 20:50:51 +0800 Subject: [PATCH] luci-theme-openwrt: use arrow function Replaced L.bind with an arrow function for simpler syntax and clearer `this` binding. Signed-off-by: Eamon Xiong --- .../htdocs/luci-static/resources/menu-openwrt.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/luci-theme-openwrt/htdocs/luci-static/resources/menu-openwrt.js b/themes/luci-theme-openwrt/htdocs/luci-static/resources/menu-openwrt.js index e3352a599c..01b897a34f 100644 --- a/themes/luci-theme-openwrt/htdocs/luci-static/resources/menu-openwrt.js +++ b/themes/luci-theme-openwrt/htdocs/luci-static/resources/menu-openwrt.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) { -- 2.30.2