From f1a932c1df58efa480dedd9bc85d289953a651ea Mon Sep 17 00:00:00 2001 From: David Greenspan Date: Mon, 17 Sep 2012 14:31:31 -0700 Subject: [PATCH] Error if no jQuery and no querySelectorAll (IE 7) --- packages/domutils/domutils.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/domutils/domutils.js b/packages/domutils/domutils.js index 6d8184b420..cf219b8dec 100644 --- a/packages/domutils/domutils.js +++ b/packages/domutils/domutils.js @@ -5,6 +5,12 @@ DomUtils = {}; (function () { var qsaFindAllBySelector = function (selector, contextNode) { + if (! document.querySelectorAll) + // IE 7 + throw new Error( + "This browser doesn't support querySelectorAll. " + + "You need Sizzle or jQuery (`meteor add jquery`)."); + // the search is constrained to descendants of `ancestor`, // but it doesn't affect the scope of the query. var ancestor = contextNode;