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

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