diff options
author | Stefan Weil <sw@weilnetz.de> | 2018-10-19 11:37:11 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-10-19 20:17:55 +0200 |
commit | c5d3febf37f739b9ffbab636914f2ab368f68bbb (patch) | |
tree | afaef37a4fc6fc46888cd7131ac5ebe8436efcfd /apps/files/js | |
parent | 543c8634340607c5dd088b9cbdcd85700222ee0b (diff) | |
download | nextcloud-server-c5d3febf37f739b9ffbab636914f2ab368f68bbb.tar.gz nextcloud-server-c5d3febf37f739b9ffbab636914f2ab368f68bbb.zip |
Add missing variable declarations
This fixes errors from LGTM like the following one:
Variable i is used like a local variable,
but is missing a declaration.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Diffstat (limited to 'apps/files/js')
-rw-r--r-- | apps/files/js/newfilemenu.js | 2 | ||||
-rw-r--r-- | apps/files/js/sidebarpreviewmanager.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/js/newfilemenu.js b/apps/files/js/newfilemenu.js index 01a183a33a7..69450e97c2a 100644 --- a/apps/files/js/newfilemenu.js +++ b/apps/files/js/newfilemenu.js @@ -171,7 +171,7 @@ /* Find the right actionHandler that should be called. * Actions is retrieved by using `actionSpec.id` */ - action = _.filter(self._menuItems, function(item) { + var action = _.filter(self._menuItems, function(item) { return item.id == $target.attr('data-action'); }).pop(); action.actionHandler(newname); diff --git a/apps/files/js/sidebarpreviewmanager.js b/apps/files/js/sidebarpreviewmanager.js index 27ccd4fc405..69528ce4e43 100644 --- a/apps/files/js/sidebarpreviewmanager.js +++ b/apps/files/js/sidebarpreviewmanager.js @@ -9,7 +9,7 @@ */ (function () { - SidebarPreviewManager = function (fileList) { + var SidebarPreviewManager = function (fileList) { this._fileList = fileList; this._previewHandlers = {}; OC.Plugins.attach('OCA.Files.SidebarPreviewManager', this); |