chore(client) split variable declarations

This commit is contained in:
coderaiser 2019-01-10 14:58:38 +02:00
parent f6ab3ffd39
commit d0a486d7e7
7 changed files with 19 additions and 8 deletions

View file

@ -628,7 +628,9 @@ function CmdProto() {
* @param options = {active: true}
*/
this.getPanel = (options) => {
let files, panel, isLeft;
let files;
let panel;
let isLeft;
let dataName = 'js-';
const current = DOM.getCurrentFile();
@ -656,7 +658,7 @@ function CmdProto() {
if (!panel)
throw Error('can not find Active Panel!');
return panel;
};

View file

@ -27,7 +27,8 @@ module.exports = (name, options, callback = options) => {
const isArray = itype.array(module.local);
const version = module.version;
let remoteTmpls, local;
let remoteTmpls;
let local;
if (isArray) {
remoteTmpls = module.remote;
local = module.local;

View file

@ -33,7 +33,8 @@ module.exports.removeMatch = (string, callback) => {
* записываем данные в него
*/
module.exports.set = (name, data, callback) => {
let str, error;
let str;
let error;
if (itype.object(data))
str = jonny.stringify(data);

View file

@ -114,7 +114,10 @@ function KeyProto() {
}
function switchKey(event) {
let i, isSelected, prev, next;
let i;
let isSelected;
let prev;
let next;
let current = Info.element;
let dataName;

View file

@ -84,7 +84,8 @@ function getMenuNameByEl(el) {
}
function getOptions(notFile) {
let name, func;
let name;
let func;
if (notFile) {
name = 'context';

View file

@ -285,7 +285,8 @@ function deleteSilent(files = DOM.getActiveFiles()) {
* @param operation
*/
function _processFiles(options, data) {
let selFiles, files;
let selFiles;
let files;
let panel;
let shouldAsk;
let sameName;

View file

@ -43,7 +43,9 @@ const Info = DOM.CurrentInfo;
const Key = CloudCmd.Key;
const basename = (a) => a.split('/').pop();
let El, TemplateAudio, Overlay;
let El;
let TemplateAudio;
let Overlay;
const Config = {
beforeShow: (callback) => {