use correct string in Imgdir to check if a folder has been previously encountered

This commit is contained in:
Jeremy Penner 2011-02-02 17:25:01 -08:00
parent 32a53c12ac
commit 991936c66e

View file

@ -42,7 +42,7 @@ package
if (file.isDirectory && !rgdirname[file.name]) if (file.isDirectory && !rgdirname[file.name])
{ {
var urpd: String = file.name + "/"; var urpd: String = file.name + "/";
rgdirname[urpd] = true; rgdirname[file.name] = true;
dispatchEvent(new EvNewImg(LOADED, urpd, null)); dispatchEvent(new EvNewImg(LOADED, urpd, null));
} }
else if (!file.isDirectory && /\.(png|gif|jpg|jpeg)$/i.test(file.name) && !mpurpf_bmp[file.name]) else if (!file.isDirectory && /\.(png|gif|jpg|jpeg)$/i.test(file.name) && !mpurpf_bmp[file.name])