diff --git a/lib/client.js b/lib/client.js index 9ad8cb9e..29df0804 100644 --- a/lib/client.js +++ b/lib/client.js @@ -383,10 +383,10 @@ var Util, DOM, CloudFunc; nohistory = options.nohistory; if (!isRefresh && json) - CloudCmd.createFileTable(obj, panel, nohistory); + createFileTable(obj, panel, nohistory); else RESTful.read(cleanPath, 'json', function(obj) { - CloudCmd.createFileTable(obj, panel, nohistory); + createFileTable(obj, panel, nohistory); Storage.set(cleanPath, obj); }); }); @@ -394,9 +394,11 @@ var Util, DOM, CloudFunc; /** * Функция строит файловую таблицу - * @param pJSON - данные о файлах + * @param json - данные о файлах + * @param panelParam + * @param nohistory */ - this.createFileTable = function(json, panelParam, nohistory) { + function createFileTable(json, panelParam, nohistory) { var files, panel = panelParam || DOM.getPanel(), /* getting current element if was refresh */