FIX: infinite rebinding when filtering emojis

This commit is contained in:
Joffrey JAFFEUX 2017-07-19 22:02:17 +02:00
parent d1f2b981b5
commit d238de87a4
1 changed files with 1 additions and 1 deletions

View File

@ -266,7 +266,7 @@ export default Ember.Component.extend({
$this.on('touchmove', () => $this.off('touchend') );
});
} else {
$emojisContainer.on("click", "a", e => handler.bind(this)(e) );
$emojisContainer.off("click").on("click", "a", e => handler.bind(this)(e) );
}
},