mirror of
https://github.com/openwrt/luci.git
synced 2025-12-21 17:04:35 +04:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user