Made variable names local in scope

This commit is contained in:
lorilee
2010-07-16 00:12:41 -07:00
parent 7786d9421e
commit fcb47c1b64

View File

@@ -28,10 +28,10 @@ function changePluginOpts() {
* in the plugin dropdown list according to the format of the selected file
*/
function matchFile(fname) {
fname_array = fname.toLowerCase().split(".");
len = fname_array.length;
var fname_array = fname.toLowerCase().split(".");
var len = fname_array.length;
if(len != 0) {
extension = fname_array[len - 1];
var extension = fname_array[len - 1];
if (extension == "gz" || extension == "bz2" || extension == "zip") {
len--;
}