Skip to content

Commit

Permalink
eslint --fix
Browse files Browse the repository at this point in the history
  • Loading branch information
joews committed Apr 29, 2017
1 parent 904f5da commit cef15a5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/js/index.js
Expand Up @@ -142,11 +142,11 @@ class DateTimePicker extends Events {
}
};

window.addEventListener("keydown", this._onWindowKeypress);
window.addEventListener('keydown', this._onWindowKeypress);
}

_stopListeningForCloseEvents() {
window.removeEventListener("keydown", this._onWindowKeypress);
window.removeEventListener('keydown', this._onWindowKeypress);
this._closeHandler = null;
}

Expand All @@ -166,8 +166,8 @@ class DateTimePicker extends Events {
});

this.$('.js-clock-minutes').addEventListener('mouseleave', e => this.mouseOutMinuteClock(e), false);
this.$(`.js-clock-minutes .${this.options.styles.clockNum}`).forEach(el => {
el.addEventListener('click', (e) => this.clickClockMinute(e), false);
this.$(`.js-clock-minutes .${this.options.styles.clockNum}`).forEach((el) => {
el.addEventListener('click', e => this.clickClockMinute(e), false);
el.addEventListener('mouseenter', e => this.mouseInMinuteClock(e), false);
});

Expand Down Expand Up @@ -219,7 +219,7 @@ class DateTimePicker extends Events {

clickClockMinute(e) {
const newValue = moment(this.value);
let number = parseInt(e.currentTarget.getAttribute('data-number'), 10);
const number = parseInt(e.currentTarget.getAttribute('data-number'), 10);

newValue.minute(number);
this.set(newValue);
Expand Down Expand Up @@ -314,7 +314,7 @@ class DateTimePicker extends Events {
}

data(val) {
console.warn(`MaterialDatetimePicker#data is deprecated and will be removed in a future release. Please use get or set.`)
console.warn('MaterialDatetimePicker#data is deprecated and will be removed in a future release. Please use get or set.');
return (val ? this.set(val) : this.value);
}

Expand Down

0 comments on commit cef15a5

Please sign in to comment.