guard against possible type errors

pull/1/head
ansuz 7 years ago
parent 499b5ea2ba
commit da0e31fa54

@ -657,7 +657,9 @@ define([
var fData = files[FILES_DATA];
getFiles([FILES_DATA]).forEach(function (id) {
if (filesList.indexOf(id) === -1) {
if (fData[id] && fData[id].href) {
removePadAttribute(fData[id].href);
}
spliceFileData(id);
}
});

Loading…
Cancel
Save