Bug 765270 - Don't try to clean up in findClosed if this._findInProgress is false. r=mfinkle

This commit is contained in:
Margaret Leibovic 2012-06-18 14:57:09 -07:00
Родитель e187e61263
Коммит 82025dbaa2
1 изменённых файлов: 3 добавлений и 5 удалений

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

@ -3575,11 +3575,9 @@ var FindHelper = {
},
findClosed: function() {
if (!this._findInProgress) {
// this should never happen
Cu.reportError("Warning: findClosed() called while _findInProgress is false!");
// fall through and clean up anyway
}
// If there's no find in progress, there's nothing to clean up
if (!this._findInProgress)
return;
this._find.collapseSelection();
this._find = null;