Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use querySelector on root if it exists but fall back to document

This means carousel will work in IE7 but only if there is only one
carousel and there is a querySelectorAll poly fill
  • Loading branch information...
commit 72f6ba3a8bf16ea7c9f795961327dc43bbfd64a7 1 parent 561758c
@bryanjswift authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  js/modules/carousel.js
View
2  js/modules/carousel.js
@@ -45,7 +45,7 @@ define(
function initialize(el, opts) {
root = el;
opts = opts || {};
- items = root.querySelectorAll('.carousel-item');
+ items = (root.querySelectorAll ? root : document).querySelectorAll('.carousel-item');
count = items.length;
jumps = opts.jumps || [];
if (count > 1) {
Please sign in to comment.
Something went wrong with that request. Please try again.