mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
chore(menu) rm duplicate
This commit is contained in:
parent
b3a1f8bd8b
commit
56c2c389c7
1 changed files with 0 additions and 19 deletions
|
|
@ -103,25 +103,6 @@ function MenuProto(Position) {
|
|||
return MenuContextFile;
|
||||
}
|
||||
|
||||
function getMenuNameByEl(el) {
|
||||
if (!el)
|
||||
return 'context';
|
||||
|
||||
const name = DOM.getCurrentName(el);
|
||||
|
||||
if (name === '..')
|
||||
return 'context'
|
||||
|
||||
return 'contextFile'
|
||||
};
|
||||
|
||||
function getMenuByName(name) {
|
||||
if (name === 'context')
|
||||
return MenuContext;
|
||||
|
||||
return MenuContextFile;
|
||||
}
|
||||
|
||||
function show(position) {
|
||||
const {x, y} = getPosition(position);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue