Skip to content

Commit 433e0d4

Browse files
committed
Removed extra semicolons
1 parent 0aeb385 commit 433e0d4

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/index.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -126,17 +126,17 @@ class ReactTooltip extends Component {
126126
}
127127
dataEvent = this.state.event || targetArray[i].getAttribute('data-event')
128128
if (dataEvent) {
129-
dataEventOff = this.state.eventOff || targetArray[i].getAttribute('data-event-off');
129+
dataEventOff = this.state.eventOff || targetArray[i].getAttribute('data-event-off')
130130
// if off event is specified, we will show tip on data-event and hide it on data-event-off
131131
if (dataEventOff) {
132-
targetArray[i].removeEventListener(dataEvent, this.showTooltip);
133-
targetArray[i].addEventListener(dataEvent, this.showTooltip, false);
132+
targetArray[i].removeEventListener(dataEvent, this.showTooltip)
133+
targetArray[i].addEventListener(dataEvent, this.showTooltip, false)
134134

135-
targetArray[i].removeEventListener(dataEventOff, this.hideTooltip);
136-
targetArray[i].addEventListener(dataEventOff, this.hideTooltip, false);
135+
targetArray[i].removeEventListener(dataEventOff, this.hideTooltip)
136+
targetArray[i].addEventListener(dataEventOff, this.hideTooltip, false)
137137
} else {
138-
targetArray[i].removeEventListener(dataEvent, this.checkStatus);
139-
targetArray[i].addEventListener(dataEvent, this.checkStatus, false);
138+
targetArray[i].removeEventListener(dataEvent, this.checkStatus)
139+
targetArray[i].addEventListener(dataEvent, this.checkStatus, false)
140140
}
141141
} else {
142142
targetArray[i].removeEventListener('mouseenter', this.showTooltip)

0 commit comments

Comments
 (0)