mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
refactor(view) indexOf > 0 -> !~indexOf
This commit is contained in:
parent
5d3989c1e9
commit
30a19d23ea
1 changed files with 2 additions and 2 deletions
|
|
@ -296,8 +296,8 @@ var CloudCmd, Util, DOM, CloudFunc, $;
|
|||
element = DOM.getCurrentByPosition(position);
|
||||
|
||||
if (element) {
|
||||
isFiles = files.indexOf(element) > 0;
|
||||
isFilesPassive = filesPassive.indexOf(element) > 0;
|
||||
isFiles = !~files.indexOf(element);
|
||||
isFilesPassive = !~filesPassive.indexOf(element);
|
||||
|
||||
if (isFiles || isFilesPassive) {
|
||||
isCurrent = DOM.isCurrentFile(element);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue