mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-23 22:01:20 -08:00
Refactor Artplayer class to use arrow functions for getter methods
This commit is contained in:
1 parent
395747f88f
commit
5dcb3e11c1
3 files changed
+7
-25
No files matched your search
@@ -254,24 +254,15 @@ export default class Control extends Component {
|
||||
append($list, $item);
|
||||
|
||||
def(item, '$option', {
|
||||
configurable: true,
|
||||
get() {
|
||||
return option.selector;
|
||||
},
|
||||
get: () => option.selector,
|
||||
});
|
||||
|
||||
def(item, '$ref', {
|
||||
configurable: true,
|
||||
get() {
|
||||
return $item;
|
||||
},
|
||||
get: () => $item,
|
||||
});
|
||||
|
||||
def(item, '$value', {
|
||||
configurable: true,
|
||||
get() {
|
||||
return $value;
|
||||
},
|
||||
get: () => $value,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user