Bug 599751 - Javascript strict warnings in nsSearchService.js; (Av1a) Add 2 missing 'let'.

r+a-2.0=gavin.sharp.
This commit is contained in:
Serge Gautherie 2010-10-18 08:43:35 +02:00
Родитель 9d11a806a5
Коммит 643cb1121f
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -1867,7 +1867,7 @@ Engine.prototype = {
// Adjust the start index to account for the opening quote
valueStart = quoteStart + "\"".length;
// Find the closing quote
valueEnd = lLine.indexOf("\"", valueStart);
let valueEnd = lLine.indexOf("\"", valueStart);
// If there is no closing quote, just go to the end of the line
if (valueEnd == -1)
valueEnd = aLine.length;
@ -1879,7 +1879,7 @@ Engine.prototype = {
LOG("_parseAsSherlock::getInputs: Lines:\n" + aLines);
// Filter out everything but non-inputs
lines = aLines.filter(function (line) {
let lines = aLines.filter(function (line) {
return /^\s*<input/i.test(line);
});
LOG("_parseAsSherlock::getInputs: Filtered lines:\n" + lines);