Skip to content

Commit

Permalink
Reset sort on filter
Browse files Browse the repository at this point in the history
  • Loading branch information
javve committed Feb 3, 2014
1 parent aa86505 commit f029e4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ var List = function(id, options, values) {

self.templater = require('./src/templater')(self);
self.search = require('./src/search')(self);
self.sort = require('./src/sort')(self);
self.filter = require('./src/filter')(self);
self.sort = require('./src/sort')(self);

this.items();
self.update();
Expand Down
1 change: 1 addition & 0 deletions src/sort.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ module.exports = function(list) {
buttons.els = getByClass(list.listContainer, list.sortClass);
events.bind(buttons.els, 'click', sort);
list.on('searchStart', buttons.clear);
list.on('filterStart', buttons.clear);

// Helpers
list.helpers.classes = classes;
Expand Down

0 comments on commit f029e4d

Please sign in to comment.