aboutsummaryrefslogtreecommitdiffstats
path: root/src/selector-native.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/selector-native.js')
-rw-r--r--src/selector-native.js17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/selector-native.js b/src/selector-native.js
index e6854d580..1b2dd185b 100644
--- a/src/selector-native.js
+++ b/src/selector-native.js
@@ -1,6 +1,8 @@
define([
- "./core"
-], function( jQuery ) {
+ "./core",
+ "./var/document",
+ "./var/documentElement"
+], function( jQuery, document, documentElement ) {
/*
* Optional (non-Sizzle) selector module for custom builds.
@@ -28,12 +30,11 @@ define([
*/
var hasDuplicate,
- docElem = window.document.documentElement,
- matches = docElem.matches ||
- docElem.webkitMatchesSelector ||
- docElem.mozMatchesSelector ||
- docElem.oMatchesSelector ||
- docElem.msMatchesSelector,
+ matches = documentElement.matches ||
+ documentElement.webkitMatchesSelector ||
+ documentElement.mozMatchesSelector ||
+ documentElement.oMatchesSelector ||
+ documentElement.msMatchesSelector,
sortOrder = function( a, b ) {
// Flag for duplicate removal
if ( a === b ) {