refactor(dom) getRefreshButton: simplify

This commit is contained in:
coderaiser 2019-08-22 18:48:56 +03:00
parent 3ac7ee4b76
commit a8793dbbc5

View file

@ -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);
};
/**