Use shorter array-conversion

This commit is contained in:
kondou 2013-09-06 13:33:17 +02:00
parent 226c205631
commit c6ca9c1e9d
1 changed files with 1 additions and 3 deletions

View File

@ -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(