Skip to content

Commit c812f4d

Browse files
author
Valentin Hervieu
committed
Prevent events from being bound twice.
1 parent a6ae35b commit c812f4d

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

dist/rzslider.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,6 @@
281281
this.initElemHandles();
282282
this.manageElementsStyle();
283283
this.addAccessibility();
284-
this.manageEventsBindings();
285284
this.setDisabledState();
286285
this.calcViewDimensions();
287286
this.setMinAndMax();
@@ -290,7 +289,7 @@
290289
self.updateCeilLab();
291290
self.updateFloorLab();
292291
self.initHandles();
293-
self.bindEvents();
292+
self.manageEventsBindings();
294293
});
295294

296295
// Recalculate slider view dimensions
@@ -1244,7 +1243,7 @@
12441243
},
12451244

12461245
onPointerBlur: function(pointer, event) {
1247-
console.info('focused', this.tracking);
1246+
console.info('blured', this.tracking);
12481247
pointer.off('keydown');
12491248
this.tracking = '';
12501249
pointer.removeClass('rz-active');

0 commit comments

Comments
 (0)