From 7c9234b540ab5344c17fd9ca9bfdf0649ff6992f Mon Sep 17 00:00:00 2001 From: coderaiser Date: Thu, 22 May 2014 09:39:21 -0400 Subject: [PATCH] feature(client) createFileTable: make private --- lib/client.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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 */