Lines Matching refs:context

25 var jQuery = function( selector, context ) {  argument
27 return new jQuery.fn.init( selector, context, rootjQuery );
93 init: function( selector, context, rootjQuery ) {
103 this.context = this[0] = selector;
109 if ( selector === "body" && !context && document.body ) {
110 this.context = document;
129 if ( match && (match[1] || !context) ) {
133 context = context instanceof jQuery ? context[0] : context;
134 doc = (context ? context.ownerDocument || context : document);
141 if ( jQuery.isPlainObject( context ) ) {
143 jQuery.fn.attr.call( selector, context, true );
174 this.context = document;
180 } else if ( !context || context.jquery ) {
181 return (context || rootjQuery).find( selector );
186 return this.constructor( context ).find( selector );
197 this.context = selector.context;
249 ret.context = this.context;
776 proxy: function( fn, context ) { argument
777 if ( typeof context === "string" ) {
778 var tmp = fn[ context ];
779 context = fn;
792 return fn.apply( context, args.concat( slice.call( arguments ) ) );
849 function jQuerySub( selector, context ) { argument
850 return new jQuerySub.fn.init( selector, context );
857 jQuerySub.fn.init = function init( selector, context ) { argument
858 if ( context && context instanceof jQuery && !(context instanceof jQuerySub) ) {
859 context = jQuerySub( context );
862 return jQuery.fn.init.call( this, selector, context, rootjQuerySub );
988 resolveWith: function( context, args ) { argument
995 callbacks.shift().apply( context, args );
999 fired = [ context, args ];
3519 context = origSelector ? this : jQuery( this.context );
3523 context[ name ]( key, data, types[key], selector );
3532 context.unbind( origSelector );
3570 for ( var j = 0, l = context.length; j < l; j++ ) {
3571 jQuery.event.add( context[j], "live." + liveConvert( type, selector ),
3577 context.unbind( "live." + liveConvert( type, selector ), fn );
3725 var Sizzle = function( selector, context, results, seed ) { argument
3727 context = context || document;
3729 var origContext = context;
3731 if ( context.nodeType !== 1 && context.nodeType !== 9 ) {
3741 contextXML = Sizzle.isXML( context ),
3765 set = posProcess( parts[0] + parts[1], context );
3769 [ context ] :
3770 Sizzle( parts.shift(), context );
3786 if ( !seed && parts.length > 1 && context.nodeType === 9 && !contextXML &&
3789 ret = Sizzle.find( parts.shift(), context, contextXML );
3790 context = ret.expr ?
3795 if ( context ) {
3798 … === 1 && (parts[0] === "~" || parts[0] === "+") && context.parentNode ? context.parentNode : cont…
3822 pop = context;
3845 } else if ( context && context.nodeType === 1 ) {
3847 …& (checkSet[i] === true || checkSet[i].nodeType === 1 && Sizzle.contains(context, checkSet[i])) ) {
3897 Sizzle.find = function( expr, context, isXML ) { argument
3914 set = Expr.find[ type ]( match, context, isXML );
3925 set = typeof context.getElementsByTagName !== "undefined" ?
3926 context.getElementsByTagName( "*" ) :
4148 ID: function( match, context, isXML ) {
4149 if ( typeof context.getElementById !== "undefined" && !isXML ) {
4150 var m = context.getElementById(match[1]);
4157 NAME: function( match, context ) {
4158 if ( typeof context.getElementsByName !== "undefined" ) {
4160 results = context.getElementsByName( match[1] );
4172 TAG: function( match, context ) {
4173 if ( typeof context.getElementsByTagName !== "undefined" ) {
4174 return context.getElementsByTagName( match[1] );
4737 Expr.find.ID = function( match, context, isXML ) { argument
4738 if ( typeof context.getElementById !== "undefined" && !isXML ) {
4739 var m = context.getElementById(match[1]);
4772 Expr.find.TAG = function( match, context ) { argument
4773 var results = context.getElementsByTagName( match[1] );
4821 Sizzle = function( query, context, extra, seed ) {
4822 context = context || document;
4826 if ( !seed && !Sizzle.isXML(context) ) {
4830 if ( match && (context.nodeType === 1 || context.nodeType === 9) ) {
4833 return makeArray( context.getElementsByTagName( query ), extra );
4836 } else if ( match[2] && Expr.find.CLASS && context.getElementsByClassName ) {
4837 return makeArray( context.getElementsByClassName( match[2] ), extra );
4841 if ( context.nodeType === 9 ) {
4844 if ( query === "body" && context.body ) {
4845 return makeArray( [ context.body ], extra );
4849 var elem = context.getElementById( match[3] );
4866 return makeArray( context.querySelectorAll(query), extra );
4873 } else if ( context.nodeType === 1 && context.nodeName.toLowerCase() !== "object" ) {
4874 var oldContext = context,
4875 old = context.getAttribute( "id" ),
4877 hasParent = context.parentNode,
4881 context.setAttribute( "id", nid );
4886 context = context.parentNode;
4891 return makeArray( context.querySelectorAll( "[id='" + nid + "'] " + query ), extra );
4903 return oldSizzle(query, context, extra, seed);
4978 Expr.find.CLASS = function( match, context, isXML ) { argument
4979 if ( typeof context.getElementsByClassName !== "undefined" && !isXML ) {
4980 return context.getElementsByClassName(match[1]);
5086 var posProcess = function( selector, context ) { argument
5090 root = context.nodeType ? [context] : context;
5199 closest: function( selectors, context ) { argument
5214 jQuery( selector, context || this.context ) :
5219 while ( cur && cur.ownerDocument && cur !== context ) {
5238 jQuery( selectors, context || this.context ) :
5251 if ( !cur || !cur.ownerDocument || cur === context || cur.nodeType === 11 ) {
5278 add: function( selector, context ) { argument
5280 jQuery( selector, context ) :
6028 clean: function( elems, context, fragment, scripts ) { argument
6031 context = context || document;
6034 if ( typeof context.createElement === "undefined" ) {
6035 context = context.ownerDocument || context[0] && context[0].ownerDocument || document;
6052 elem = context.createTextNode( elem );
6061 div = context.createElement("div");
6093 … div.insertBefore( context.createTextNode( rleadingWhitespace.exec(elem)[0] ), div.firstChild );
6871 for( var field in { context: 1, url: 1 } ) {
6956 callbackContext = s.context || s,