Skip to content
Snippets Groups Projects
Commit c6ca9c1e authored by Christopher Schäpers's avatar Christopher Schäpers
Browse files

Use shorter array-conversion

parent 226c2056
Branches
No related tags found
No related merge requests found
...@@ -245,9 +245,7 @@ var OCdialogs = { ...@@ -245,9 +245,7 @@ var OCdialogs = {
}, },
_getFileList: function(dir, mimeType) { _getFileList: function(dir, mimeType) {
if (typeof(mimeType) === "string") { if (typeof(mimeType) === "string") {
var tmp = mimeType; mimeType = [mimeType];
mimeType = new Array();
mimeType[0] = tmp;
} }
return $.getJSON( return $.getJSON(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment