aboutsummaryrefslogtreecommitdiffstats
path: root/src/traversing.js
diff options
context:
space:
mode:
authorjeresig <jeresig@gmail.com>2010-09-08 13:54:33 -0400
committerjeresig <jeresig@gmail.com>2010-09-08 13:54:33 -0400
commitbca576550249e9b79b1097669dff6d4ddd0d65cf (patch)
tree457ee8cba209159bee20fcf16e69546f7e30b60b /src/traversing.js
parent116f3b7c72004f3173a7d92457154a1fdb2180e1 (diff)
downloadjquery-bca576550249e9b79b1097669dff6d4ddd0d65cf.tar.gz
jquery-bca576550249e9b79b1097669dff6d4ddd0d65cf.zip
Make sure that jQuery works even when the individual modules are loaded separately AND jQuery.noConflict(true) is used. Fixes #7011.
Diffstat (limited to 'src/traversing.js')
-rw-r--r--src/traversing.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/traversing.js b/src/traversing.js
index fde7219bb..59110b096 100644
--- a/src/traversing.js
+++ b/src/traversing.js
@@ -1,3 +1,5 @@
+(function( jQuery ) {
+
var runtil = /Until$/,
rparentsprev = /^(?:parents|prevUntil|prevAll)/,
// Note: This RegExp should be improved, or likely pulled from Sizzle
@@ -271,3 +273,5 @@ function winnow( elements, qualifier, keep ) {
return (jQuery.inArray( elem, qualifier ) >= 0) === keep;
});
}
+
+})( jQuery );