Skip to content

Commit

Permalink
Use for loop instead of for...of loop | Fixes #1020
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Castelain committed Jun 18, 2018
1 parent 2bca773 commit 64daf3a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/clay-tooltip/src/ClayTooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,9 @@ class ClayTooltip extends Component {

this._eventHandler.removeAllListeners();

for (let selector of newSelectors) {
for (let i = 0, l = newSelectors.length; i < l; i++) {
const selector = newSelectors[i];

this._eventHandler.add(
dom.delegate(
document,
Expand Down

0 comments on commit 64daf3a

Please sign in to comment.