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

View File

@@ -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) {