Bug 911090 Previous form autocomplete result sometimes has a wrong searchString r=MattN

This commit is contained in:
Neil Rashbrook
2013-10-14 08:32:04 +01:00
parent 42c6e61d14
commit ecbcba39d8
3 changed files with 28 additions and 9 deletions

View File

@@ -18,7 +18,7 @@ this.FormAutoCompleteResult =
labels,
comments,
prevResult) {
this._searchString = searchString;
this.searchString = searchString;
this._searchResult = searchResult;
this._defaultIndex = defaultIndex;
this._errorDescription = errorDescription;
@@ -37,7 +37,7 @@ this.FormAutoCompleteResult =
FormAutoCompleteResult.prototype = {
// The user's query string
_searchString: "",
searchString: "",
// The result code of this result object, see |get searchResult| for possible values.
_searchResult: 0,
@@ -60,13 +60,6 @@ FormAutoCompleteResult.prototype = {
return this;
},
/**
* @return the user's query string
*/
get searchString() {
return this._searchString;
},
/**
* @return the result code of this result object, either:
* RESULT_IGNORED (invalid searchString)