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 * in the plugin dropdown list according to the format of the selected file
*/ */
function matchFile(fname) { function matchFile(fname) {
fname_array = fname.toLowerCase().split("."); var fname_array = fname.toLowerCase().split(".");
len = fname_array.length; var len = fname_array.length;
if(len != 0) { if(len != 0) {
extension = fname_array[len - 1]; var extension = fname_array[len - 1];
if (extension == "gz" || extension == "bz2" || extension == "zip") { if (extension == "gz" || extension == "bz2" || extension == "zip") {
len--; len--;
} }