mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-25 08:54:10 +00:00
chore(sort) es2015-ify
This commit is contained in:
parent
59d501a2f0
commit
07c31ce81e
1 changed files with 11 additions and 9 deletions
|
|
@ -3,16 +3,17 @@
|
|||
/* global CloudCmd */
|
||||
const DOM = require('./dom');
|
||||
|
||||
var Info = DOM.CurrentInfo;
|
||||
var sort = CloudCmd.sort;
|
||||
var order = CloudCmd.order;
|
||||
var position = DOM.getPanelPosition();
|
||||
var sortPrevious = sort[position];
|
||||
const Info = DOM.CurrentInfo;
|
||||
const sort = CloudCmd.sort;
|
||||
const order = CloudCmd.order;
|
||||
const position = DOM.getPanelPosition();
|
||||
|
||||
CloudCmd.sortPanel = function(name, panel) {
|
||||
panel = panel || DOM.getPanel();
|
||||
|
||||
var position = panel
|
||||
let sortPrevious = sort[position];
|
||||
|
||||
const {getPanel} = DOM;
|
||||
|
||||
CloudCmd.sortPanel = (name, panel = getPanel()) => {
|
||||
const position = panel
|
||||
.dataset
|
||||
.name
|
||||
.replace('js-', '');
|
||||
|
|
@ -33,3 +34,4 @@ CloudCmd.sortPanel = function(name, panel) {
|
|||
noCurrent: position !== Info.panelPosition
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue