Skip to content

Commit 27bee07

Browse files
committed
Merge pull request EloquentStudio#65 from BradGriffith/master
Allow the first criterion to be removed (index==0)
2 parents b870592 + 2363b1d commit 27bee07

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/filter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ F.removeCriteria = function(field){
258258
}
259259
});
260260

261-
if(index){
261+
if(index != null){
262262
criteria = this.criterias.splice(index, 1)[0];
263263
$('body').off(criteria.event, criteria.ele)
264264
}

0 commit comments

Comments
 (0)