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 <eamonxiong@gmail.com>
This commit is contained in:
Eamon Xiong
2025-11-17 20:51:47 +08:00
parent 8df4e465a3
commit 0096cef2b3
@@ -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) {