mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-20 20:21: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
@@ -3008,22 +3008,13 @@ class Control extends (0, _componentDefault.default) {
|
||||
$item.innerHTML = item.html;
|
||||
(0, _utils.append)($list, $item);
|
||||
(0, _utils.def)(item, "$option", {
|
||||
configurable: true,
|
||||
get () {
|
||||
return option.selector;
|
||||
}
|
||||
get: ()=>option.selector
|
||||
});
|
||||
(0, _utils.def)(item, "$ref", {
|
||||
configurable: true,
|
||||
get () {
|
||||
return $item;
|
||||
}
|
||||
get: ()=>$item
|
||||
});
|
||||
(0, _utils.def)(item, "$value", {
|
||||
configurable: true,
|
||||
get () {
|
||||
return $value;
|
||||
}
|
||||
get: ()=>$value
|
||||
});
|
||||
}
|
||||
const setLeft = ()=>{
|
||||
|
||||
Reference in new issue
Block a user