From a2e06afe3ecc1a247b3ce5e7629a74032af2cd9b Mon Sep 17 00:00:00 2001 From: francoischalifour Date: Wed, 29 Aug 2018 16:48:39 +0200 Subject: [PATCH] docs(api): Move IE comment --- src/medium-zoom.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/medium-zoom.js b/src/medium-zoom.js index a2f32f6..c2b3136 100644 --- a/src/medium-zoom.js +++ b/src/medium-zoom.js @@ -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)