Made variable names local in scope
This commit is contained in:
@@ -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--;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user