From: Eamon Xiong Date: Mon, 17 Nov 2025 12:51:47 +0000 (+0800) Subject: luci-theme-openwrt-2020: use arrow function X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=0096cef2b3eb4882fd48c224be507968787abab7;p=project%2Fluci.git luci-theme-openwrt-2020: 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-openwrt-2020/htdocs/luci-static/resources/menu-openwrt2020.js b/themes/luci-theme-openwrt-2020/htdocs/luci-static/resources/menu-openwrt2020.js index e1e9a40680..6e66476202 100644 --- a/themes/luci-theme-openwrt-2020/htdocs/luci-static/resources/menu-openwrt2020.js +++ b/themes/luci-theme-openwrt-2020/htdocs/luci-static/resources/menu-openwrt2020.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) {