mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
refactor(dom) getRefreshButton: simplify
This commit is contained in:
parent
3ac7ee4b76
commit
a8793dbbc5
1 changed files with 2 additions and 5 deletions
|
|
@ -356,11 +356,8 @@ function CmdProto() {
|
|||
/**
|
||||
* unified way to get RefreshButton
|
||||
*/
|
||||
this.getRefreshButton = (panel) => {
|
||||
const currentPanel = panel || DOM.getPanel();
|
||||
const refresh = DOM.getByDataName('js-refresh', currentPanel);
|
||||
|
||||
return refresh;
|
||||
this.getRefreshButton = (panel = DOM.getPanel()) => {
|
||||
return DOM.getByDataName('js-refresh', panel);
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue