Bug 822446: Add parens around assignment-used-as-loop-condition in nsPlacesAutoComplete.js and nsPlacesExpiration.js, to fix JS strict warning "test for equality mistyped as assignment". r=mak

This commit is contained in:
Daniel Holbert 2012-12-17 22:23:05 -08:00
Родитель 116db33497
Коммит 947aea3167
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -624,7 +624,7 @@ nsPlacesAutoComplete.prototype = {
handleResult: function PAC_handleResult(aResultSet)
{
let row, haveMatches = false;
while (row = aResultSet.getNextRow()) {
while ((row = aResultSet.getNextRow())) {
let match = this._processRow(row);
haveMatches = haveMatches || match;

Просмотреть файл

@ -619,7 +619,7 @@ nsPlacesExpiration.prototype = {
return;
let row;
while (row = aResultSet.getNextRow()) {
while ((row = aResultSet.getNextRow())) {
if (!("_expectedResultsCount" in this))
this._expectedResultsCount = row.getResultByName("expected_results");
if (this._expectedResultsCount > 0)