Use shorter array-conversion
This commit is contained in:
parent
226c205631
commit
c6ca9c1e9d
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue