зеркало из https://github.com/mozilla/gecko-dev.git
bug 102183, fix javascript warning and logic error, r=law, sr=alecf
This commit is contained in:
Родитель
064c4cae19
Коммит
0d87a30819
|
@ -256,15 +256,14 @@
|
|||
var state =
|
||||
getStateFromFormsArray(formsArray, captureOrPrefill, threshhold);
|
||||
if (state == enable) {
|
||||
bestState = enable;
|
||||
if (elementCount > threshhold) {
|
||||
bestState = enable;
|
||||
return true;
|
||||
}
|
||||
bestState = enable;
|
||||
} else if (state == disable && bestState == hide) {
|
||||
bestState = disable;
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// Walk through the DOM to determine how capture or prefill item is to appear.
|
||||
|
|
Загрузка…
Ссылка в новой задаче