fix variable hiding when finding filter to replace

This commit is contained in:
kielni
2014-01-06 14:56:31 -08:00
parent f7f4f05346
commit 964a593106
2 changed files with 39 additions and 7 deletions

View File

@@ -522,8 +522,8 @@ my.Query = Backbone.Model.extend({
// delete filter on the same field, then add
var filters = this.get('filters');
var idx = -1;
_.each(this.get('filters'), function(filter, key, list) {
if (filter.field == filter.field) {
_.each(this.get('filters'), function(f, key, list) {
if (filter.field == f.field) {
idx = key;
}
});