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
|
||||
*/
|
||||
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--;
|
||||
}
|
||||
|
Reference in New Issue
Block a user