Remove old event handlers when facets are updated

This commit is contained in:
Tom Morris 2014-07-03 14:29:46 -04:00
parent 8ff0c69a8d
commit c934c4415c

View File

@ -423,6 +423,7 @@ ListFacet.prototype._update = function(resetScroll) {
var wireEvents = function() {
var bodyInnerDiv = self._elmts.bodyInnerDiv;
bodyInnerDiv.off(); // remove all old handlers
bodyInnerDiv.on('click', '.facet-choice-label', function(e) {
e.preventDefault();
var choice = findChoice($(this));