From c6ca9c1e9d8e25f4dad5ca18f2f335b19a4a3c0c Mon Sep 17 00:00:00 2001 From: kondou Date: Fri, 6 Sep 2013 13:33:17 +0200 Subject: [PATCH] Use shorter array-conversion --- core/js/oc-dialogs.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/js/oc-dialogs.js b/core/js/oc-dialogs.js index ed4d7c678e..61b58d00fa 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(