lint fixes

This commit is contained in:
Bohdan Kostko 2017-03-12 14:19:27 +01:00
parent c21893e6fa
commit 9df1310a52

View file

@ -1574,11 +1574,11 @@ class Choices {
* @private
*/
_onMouseDown(e) {
let target = e.target;
const target = e.target;
if (this.containerOuter.contains(target) && target !== this.input) {
let foundTarget;
const activeItems = this.store.getItemsFilteredByActive();
const hasShiftKey = e.shiftKey;
let foundTarget;
if (foundTarget = findAncestorByAttr(target, 'data-item')) {
this._handleItemAction(activeItems, foundTarget, hasShiftKey);