Skip to content

Commit

Permalink
Merge pull request #229 from gauthierj/master
Browse files Browse the repository at this point in the history
Replaced Object.keys(...) by Object.getOwnPropertyNames(...)
  • Loading branch information
wwayne authored Nov 23, 2016
2 parents 1ebb058 + ef749c3 commit 6a22405
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ class ReactTooltip extends Component {

// targetArray is a NodeList, convert it to a real array
// I hope I can use Object.values...
return Object.keys(targetArray).filter(key => key !== 'length').map(key => {
return Object.getOwnPropertyNames(targetArray).map(key => {
return targetArray[key]
})
}
Expand Down

0 comments on commit 6a22405

Please sign in to comment.