Fix problem with addCondition() overwriting existing search conditions (thanks David)

This commit is contained in:
Dan Stillman 2006-08-10 02:52:29 +00:00
parent 3a1ffb6174
commit 0061a8d0df

View file

@ -109,7 +109,7 @@ Scholar.Search.prototype.addCondition = function(condition, operator, value){
throw ("Invalid operator '" + operator + "' for condition " + condition);
}
var searchConditionID = this._maxSearchConditionID++;
var searchConditionID = ++this._maxSearchConditionID;
this._conditions[searchConditionID] = {
id: searchConditionID,