Skip to content

Commit

Permalink
docs(api): Move IE comment
Browse files Browse the repository at this point in the history
  • Loading branch information
francoischalifour committed Aug 29, 2018
1 parent 71eebf9 commit a2e06af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/medium-zoom.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ const getImagesFromSelector = selector => {
}

if (isNode(selector)) {
// Do not use spread operator or Array.from() for IE support
return [selector].filter(isSupported)
}

if (typeof selector === 'string') {
// Do not use spread operator or Array.from() for IE support
return [].slice
.call(document.querySelectorAll(selector))
.filter(isSupported)
Expand Down

0 comments on commit a2e06af

Please sign in to comment.