Fix jslint warnings
This commit is contained in:
parent
ca04ce3645
commit
b7d14b1b4d
|
@ -843,6 +843,7 @@ function defocusSearchBar() {
|
||||||
function checkGenerics(obj, val) {
|
function checkGenerics(obj, val) {
|
||||||
// The names match, but we need to be sure that all generics kinda
|
// The names match, but we need to be sure that all generics kinda
|
||||||
// match as well.
|
// match as well.
|
||||||
|
var tmp_lev, elem_name;
|
||||||
if (val.generics.length > 0) {
|
if (val.generics.length > 0) {
|
||||||
if (obj.length > GENERICS_DATA &&
|
if (obj.length > GENERICS_DATA &&
|
||||||
obj[GENERICS_DATA].length >= val.generics.length) {
|
obj[GENERICS_DATA].length >= val.generics.length) {
|
||||||
|
@ -864,8 +865,8 @@ function defocusSearchBar() {
|
||||||
match = firstGeneric;
|
match = firstGeneric;
|
||||||
lev = 0;
|
lev = 0;
|
||||||
} else {
|
} else {
|
||||||
for (var elem_name in elems) {
|
for (elem_name in elems) {
|
||||||
var tmp_lev = levenshtein(elem_name, firstGeneric);
|
tmp_lev = levenshtein(elem_name, firstGeneric);
|
||||||
if (tmp_lev < lev) {
|
if (tmp_lev < lev) {
|
||||||
lev = tmp_lev;
|
lev = tmp_lev;
|
||||||
match = elem_name;
|
match = elem_name;
|
||||||
|
|
Loading…
Reference in New Issue