luci-theme-material: use arrow function
authorEamon Xiong <[email protected]>
Mon, 17 Nov 2025 12:49:32 +0000 (20:49 +0800)
committerEamon Xiong <[email protected]>
Mon, 17 Nov 2025 15:41:07 +0000 (23:41 +0800)
Replaced L.bind with an arrow function for simpler syntax and clearer `this` binding.

Signed-off-by: Eamon Xiong <[email protected]>
themes/luci-theme-material/htdocs/luci-static/resources/menu-material.js

index bf39705cd6e7ed77358a5943caeecbe0a02bc915..21d94570c54215317a39515c2354d767057a8b11 100644 (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) {