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