summaryrefslogtreecommitdiffstats
path: root/core/js/oc-dialogs.js
diff options
context:
space:
mode:
authorkondou <kondou@ts.unde.re>2013-09-06 13:33:17 +0200
committerkondou <kondou@ts.unde.re>2013-09-06 13:33:17 +0200
commitc6ca9c1e9d8e25f4dad5ca18f2f335b19a4a3c0c (patch)
treea9f70f65b66e23560cfe4cf7aa760f911ed6b377 /core/js/oc-dialogs.js
parent226c205631480a2df14fa9a6e594da01054b311e (diff)
downloadnextcloud-server-c6ca9c1e9d8e25f4dad5ca18f2f335b19a4a3c0c.tar.gz
nextcloud-server-c6ca9c1e9d8e25f4dad5ca18f2f335b19a4a3c0c.zip
Use shorter array-conversion
Diffstat (limited to 'core/js/oc-dialogs.js')
-rw-r--r--core/js/oc-dialogs.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/core/js/oc-dialogs.js b/core/js/oc-dialogs.js
index ed4d7c678e1..61b58d00fa6 100644
--- a/core/js/oc-dialogs.js
+++ b/core/js/oc-dialogs.js
@@ -245,9 +245,7 @@ var OCdialogs = {
},
_getFileList: function(dir, mimeType) {
if (typeof(mimeType) === "string") {
- var tmp = mimeType;
- mimeType = new Array();
- mimeType[0] = tmp;
+ mimeType = [mimeType];
}
return $.getJSON(