Bug 1176381 - Fix a typo in SearchSuggestionController that causes a JS warning. r=MattN

This commit is contained in:
Drew Willcoxon 2015-06-23 17:42:19 -07:00
parent db1e76d354
commit 1a78a117d9

View File

@ -128,7 +128,7 @@ this.SearchSuggestionController.prototype = {
if (!this.maxLocalResults && !this.maxRemoteResults) {
throw new Error("Zero results expected, what are you trying to do?");
}
if (this.maxLocalResults < 0 || this.remoteResult < 0) {
if (this.maxLocalResults < 0 || this.maxRemoteResults < 0) {
throw new Error("Number of requested results must be positive");
}