Remove old event handlers when facets are updated
This commit is contained in:
parent
8ff0c69a8d
commit
c934c4415c
@ -423,6 +423,7 @@ ListFacet.prototype._update = function(resetScroll) {
|
|||||||
|
|
||||||
var wireEvents = function() {
|
var wireEvents = function() {
|
||||||
var bodyInnerDiv = self._elmts.bodyInnerDiv;
|
var bodyInnerDiv = self._elmts.bodyInnerDiv;
|
||||||
|
bodyInnerDiv.off(); // remove all old handlers
|
||||||
bodyInnerDiv.on('click', '.facet-choice-label', function(e) {
|
bodyInnerDiv.on('click', '.facet-choice-label', function(e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
var choice = findChoice($(this));
|
var choice = findChoice($(this));
|
||||||
|
Loading…
Reference in New Issue
Block a user