Lines Matching +defs:a +defs:type

18 // Define a local copy of jQuery
40 // Is it a simple selector
43 // Check if a string has a non-whitespace character in it
49 // Match a standalone tag
52 // Keep a UserAgent string for use with jQuery.browser
67 // Save a reference to some core methods
104 // Verify a match, and that no context was specified for #id
111 // If a single string is passed in and it's a single tag
112 // just do a createElement and skip the rest
189 // The default length of a jQuery object is 0
202 // Get the whole matched element set as a clean array
206 // Return a 'clean' array
216 // Build a new jQuery matched element set
226 // Add the old object onto the stack (as a reference)
241 // Execute a callback for every element in the matched set.
296 // Behaves like an Array's method, not like a jQuery method.
309 // Handle a deep copy situation
317 // Handle case when target is a string or something (possible in deep copy)
379 // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
436 // If IE and not a frame
506 if ( /^[\],:{}\s]*$/.test(data.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, "@")
522 // Evalulates a script in a global context
530 script.type = "text/javascript";
539 // This arises when a base node is used (#2709).
750 // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
793 // Mutifunctional method to get and set values to a collection
794 // The value/s can be optionally by executed if its a function
835 div.innerHTML = " <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";
838 a = div.getElementsByTagName("a")[0];
841 if ( !all || !all.length || !a ) {
854 // This requires a wrapper element in IE
859 style: /red/.test( a.getAttribute("style") ),
863 hrefNormalized: a.getAttribute("href") === "/a",
867 // Use a regex to work around a WebKit issue. See #5145
868 opacity: /^0.55$/.test( a.style.opacity ),
872 cssFloat: !!a.style.cssFloat,
874 // Make sure that if no value is specified for a checkbox
879 // Make sure that a selected-by-default option has a working selected property.
893 script.type = "text/javascript";
900 // Make sure that the execution of code works by injecting a script
921 // Cloning a node shouldn't copy over any
930 div.innerHTML = "<input type='radio' name='radiotest' checked='checked'/>";
971 root = script = div = all = a = null;
1016 // Compute a unique ID for the element
1021 // Avoid generating a new cache unless none exists and we
1053 // If we want to remove a specific section of the element's data
1117 queue: function( elem, type, data ) {
1122 type = (type || "fx") + "queue";
1123 var q = jQuery.data( elem, type );
1125 // Speed up dequeue by getting out quickly if this is just a lookup
1131 q = jQuery.data( elem, type, jQuery.makeArray(data) );
1140 dequeue: function( elem, type ) {
1141 type = type || "fx";
1143 var queue = jQuery.queue( elem, type ), fn = queue.shift();
1151 // Add a progress sentinel to prevent the fx queue from being
1153 if ( type === "fx" ) {
1158 jQuery.dequeue(elem, type);
1165 queue: function( type, data ) {
1166 if ( typeof type !== "string" ) {
1167 data = type;
1168 type = "fx";
1172 return jQuery.queue( this[0], type );
1175 var queue = jQuery.queue( this, type, data );
1177 if ( type === "fx" && queue[0] !== "inprogress" ) {
1178 jQuery.dequeue( this, type );
1182 dequeue: function( type ) {
1184 jQuery.dequeue( this, type );
1190 delay: function( time, type ) {
1192 type = type || "fx";
1194 return this.queue( type, function() {
1197 jQuery.dequeue( elem, type );
1202 clearQueue: function( type ) {
1203 return this.queue( type || "fx", [] );
1212 rclickable = /^(a|area)$/i,
1296 var type = typeof value, isBool = typeof stateVal === "boolean";
1306 if ( type === "string" ) {
1318 } else if ( type === "undefined" || type === "boolean" ) {
1355 one = elem.type === "select-one";
1383 // Handle the case where in Webkit "" is returned instead of "on" if a value isn't specified
1384 if ( rradiocheck.test( elem.type ) && !jQuery.support.checkOn ) {
1410 // Typecast each time if the value is a Function and the appended
1416 if ( jQuery.isArray(val) && rradiocheck.test( this.type ) ) {
1466 // Only do all the following if this is a node (faster for style)
1488 // We can't allow the type property to be changed (since it causes problems in IE)
1489 if ( name === "type" && rtype.test( elem.nodeName ) && elem.parentNode ) {
1490 jQuery.error( "type property can't be changed" );
1525 // convert the value to a string (all browsers do this but IE) see #1070
1530 // Some attributes require a special call on IE
1577 // Make sure that the function being executed has a unique ID
1596 // Handle the second event of a trigger and when
1597 // an event is called after a page has unloaded
1604 // Add elem as a property of the handle function
1605 // This is to prevent a memory leak with non-native events in IE.
1608 // Handle multiple events separated by a space
1612 var type, i = 0, namespaces;
1614 while ( (type = types[ i++ ]) ) {
1620 if ( type.indexOf(".") > -1 ) {
1621 namespaces = type.split(".");
1622 type = namespaces.shift();
1630 handleObj.type = type;
1634 var handlers = events[ type ],
1635 special = jQuery.event.special[ type ] || {};
1639 handlers = events[ type ] = [];
1641 // Check for a special event handler
1647 elem.addEventListener( type, eventHandle, false );
1650 elem.attachEvent( "on" + type, eventHandle );
1667 jQuery.event.global[ type ] = true;
1683 var ret, type, fn, i = 0, all, namespaces, namespace, special, eventType, handleObj, origType,
1692 if ( types && types.type ) {
1694 types = types.type;
1701 for ( type in events ) {
1702 jQuery.event.remove( elem, type + types );
1708 // Handle multiple events separated by a space
1712 while ( (type = types[ i++ ]) ) {
1713 origType = type;
1715 all = type.indexOf(".") < 0;
1720 namespaces = type.split(".");
1721 type = namespaces.shift();
1727 eventType = events[ type ];
1746 special = jQuery.event.special[ type ] || {};
1752 // remove the given handler for the given type
1772 removeEvent( elem, type, elemData.handle );
1776 delete events[ type ];
1798 // Event object or event type
1799 var type = event.type || event,
1807 jQuery.extend( jQuery.Event(type), event ) :
1808 // Just the event type (string)
1809 jQuery.Event(type);
1811 if ( type.indexOf("!") >= 0 ) {
1812 event.type = type = type.slice(0, -1);
1816 // Handle a global trigger
1822 if ( jQuery.event.global[ type ] ) {
1824 if ( this.events && this.events[type] ) {
1831 // Handle triggering a single element
1849 // Trigger the event, it is assumed that "handle" is a function
1860 if ( elem[ "on" + type ] && elem[ "on" + type ].apply( elem, data ) === false ) {
1873 isClick = jQuery.nodeName(target, "a") && type === "click",
1874 special = jQuery.event.special[ type ] || {};
1880 if ( target[ type ] ) {
1882 old = target[ "on" + type ];
1885 target[ "on" + type ] = null;
1889 target[ type ]();
1896 target[ "on" + type ] = old;
1911 all = event.type.indexOf(".") < 0 && !event.exclusive;
1914 namespaces = event.type.split(".");
1915 event.type = namespaces.shift();
1919 var events = jQuery.data(this, "events"), handlers = events[ event.type ];
1930 // Pass in a reference to the handler function itself
1963 // store a copy of the original event object
1978 // check if target is a textnode (safari)
2034 type = handleObj.origType.replace(rnamespaces, "");
2037 if ( type === this.origType.replace(rnamespaces, "") ) {
2069 function( elem, type, handle ) {
2070 elem.removeEventListener( type, handle, false );
2072 function( elem, type, handle ) {
2073 elem.detachEvent( "on" + type, handle );
2083 if ( src && src.type ) {
2085 this.type = src.type;
2086 // Event type
2088 this.type = src;
2153 // Firefox sometimes assigns relatedTarget a XUL element
2162 // set the correct event type
2163 event.type = event.data;
2165 // handle event if we actually just moused on to a non sub-element
2169 // assuming we've left the element since we most likely mousedover a xul element
2173 // In case of event delegation, we only need to rename the event.type,
2176 event.type = event.data;
2202 var elem = e.target, type = elem.type;
2204 if ( (type === "submit" || type === "image") && jQuery( elem ).closest("form").length ) {
2210 var elem = e.target, type = elem.type;
2212 if ( (type === "text" || type === "password") && jQuery( elem ).closest("form").length && e.keyCode === 13 ) {
2237 var type = elem.type, val = elem.value;
2239 if ( type === "radio" || type === "checkbox" ) {
2242 } else if ( type === "select-multiple" ) {
2267 if ( e.type !== "focusout" || elem.type !== "radio" ) {
2276 e.type = "change";
2286 var elem = e.target, type = elem.type;
2288 if ( type === "radio" || type === "checkbox" || elem.nodeName.toLowerCase() === "select" ) {
2296 var elem = e.target, type = elem.type;
2299 (e.keyCode === 32 && (type === "checkbox" || type === "radio")) ||
2300 type === "select-multiple" ) {
2306 // with this event you can't trigger a change event, but you can store
2315 if ( this.type === "file" ) {
2319 for ( var type in changeFilters ) {
2320 jQuery.event.add( this, type + ".specialChange", changeFilters[type] );
2336 function trigger( type, elem, args ) {
2337 args[0].type = type;
2355 e.type = fix;
2362 jQuery.fn[ name ] = function( type, data, fn ) {
2364 if ( typeof type === "object" ) {
2365 for ( var key in type ) {
2366 this[ name ](key, data, type[key], fn);
2381 if ( type === "unload" && name !== "one" ) {
2382 this.one( type, data, fn );
2386 jQuery.event.add( this[i], type, handler, data );
2395 unbind: function( type, fn ) {
2397 if ( typeof type === "object" && !type.preventDefault ) {
2398 for ( var key in type ) {
2399 this.unbind(key, type[key]);
2404 jQuery.event.remove( this[i], type, fn );
2424 trigger: function( type, data ) {
2426 jQuery.event.trigger( type, data, this );
2430 triggerHandler: function( type, data ) {
2432 var event = jQuery.Event( type );
2476 var type, i = 0, match, namespaces, preType,
2487 while ( (type = types[ i++ ]) != null ) {
2488 match = rnamespaces.exec( type );
2493 type = type.replace( rnamespaces, "" );
2496 if ( type === "hover" ) {
2501 preType = type;
2503 if ( type === "focus" || type === "blur" ) {
2504 types.push( liveMap[ type ] + namespaces );
2505 type = type + namespaces;
2508 type = (liveMap[ type ] || type) + namespaces;
2514 jQuery.event.add( this, liveConvert( type, selector ),
2515 { data: data, selector: selector, handler: fn, origType: type, origHandler: fn, preType: preType } );
2520 context.unbind( liveConvert( type, selector ), fn );
2534 if ( event.liveFired === this || !events || !events.live || event.button && event.type === "click" ) {
2545 if ( handleObj.origType.replace( rnamespaces, "" ) === event.type ) {
2590 function liveConvert( type, selector ) {
2591 return "live." + (type && type !== "*" ? type + "." : "") + selector.replace(/\./g, "`").replace(/ /g, "&");
2693 // Take a shortcut and set the context if the root selector is an ID
2798 var type = Expr.order[i], match;
2800 if ( (match = Expr.leftMatch[ type ].exec( expr )) ) {
2806 set = Expr.find[ type ]( match, context, isXML );
2808 expr = expr.replace( Expr.match[ type ], "" );
2827 for ( var type in Expr.filter ) {
2828 if ( (match = Expr.leftMatch[ type ].exec( expr )) != null && match[2] ) {
2829 var filter = Expr.filter[ type ], found, item, left = match[1];
2842 if ( Expr.preFilter[ type ] ) {
2843 match = Expr.preFilter[ type ]( match, curLoop, inplace, result, not, isXMLFilter );
2877 expr = expr.replace( Expr.match[ type ], "" );
3086 // If we're dealing with a complex expression, or a simple one
3109 return elem.disabled === false && elem.type !== "hidden";
3136 return "text" === elem.type;
3139 return "radio" === elem.type;
3142 return "checkbox" === elem.type;
3145 return "file" === elem.type;
3148 return "password" === elem.type;
3151 return "submit" === elem.type;
3154 return "image" === elem.type;
3157 return "reset" === elem.type;
3160 return "button" === elem.type || elem.nodeName.toLowerCase() === "button";
3215 var type = match[1], node = elem;
3216 switch (type) {
3224 if ( type === "first" ) {
3281 type = match[2],
3285 type === "!=" :
3286 type === "=" ?
3288 type === "*=" ?
3290 type === "~=" ?
3294 type === "!=" ?
3296 type === "^=" ?
3298 type === "$=" ?
3300 type === "|=" ?
3316 for ( var type in Expr.match ) {
3317 Expr.match[ type ] = new RegExp( Expr.match[ type ].source + /(?![^\[]*\])(?![^\(]*\))/.source );
3318 Expr.leftMatch[ type ] = new RegExp( /(^(?:.|\r|\n)*?)/.source + Expr.match[ type ].source.replace(/\\(\d+)/g, function(all, num){
3334 // Perform a simple check to determine if the browser is capable of
3335 // converting a NodeList to an array using builtin methods.
3341 // Provide a fallback method if it does not work
3367 sortOrder = function( a, b ) {
3368 if ( !a.compareDocumentPosition || !b.compareDocumentPosition ) {
3369 if ( a == b ) {
3372 return a.compareDocumentPosition ? -1 : 1;
3375 var ret = a.compareDocumentPosition(b) & 4 ? -1 : a === b ? 0 : 1;
3382 sortOrder = function( a, b ) {
3383 if ( !a.sourceIndex || !b.sourceIndex ) {
3384 if ( a == b ) {
3387 return a.sourceIndex ? -1 : 1;
3390 var ret = a.sourceIndex - b.sourceIndex;
3397 sortOrder = function( a, b ) {
3398 if ( !a.ownerDocument || !b.ownerDocument ) {
3399 if ( a == b ) {
3402 return a.ownerDocument ? -1 : 1;
3405 var aRange = a.ownerDocument.createRange(), bRange = b.ownerDocument.createRange();
3406 aRange.setStart(a, 0);
3407 aRange.setEnd(a, 0);
3439 // querying by getElementById (and provide a workaround)
3441 // We're going to inject a fake input element with a specified name
3444 form.innerHTML = "<a name='" + id + "'/>";
3450 // The workaround has to do additional checks after a getElementById
3474 // Create a fake element
3501 div.innerHTML = "<a href='#'></a>";
3550 // Opera can't find a second classname (in 9.6)
3642 var contains = document.compareDocumentPosition ? function(a, b){
3643 return !!(a.compareDocumentPosition(b) & 16);
3644 } : function(a, b){
3645 return a !== b && (a.contains ? a.contains(b) : true);
3821 // If it receives a string, the selector is used
3827 // If it receives a jQuery object, the first element is used
3848 // from a document (should be improved, where feasible).
4166 // Handle the case in IE 8 where action=/test/> self-closes a tag
4190 // See if we can take a shortcut and just use innerHTML
4229 // this can help fix replacing a parent with child elements
4282 // If we're in a fragment, just use that instead of building a new one
4343 for ( var type in events ) {
4344 for ( var handler in events[ type ] ) {
4345 jQuery.event.add( this, type, events[ type ][ handler ], events[ type ][ handler ].data );
4358 // IE 6 doesn't like it when you put <object> or <embed> elements in a fragment
4458 // String was a <table>, *may* have spurious <tbody>
4463 // String was a bare <thead> or <tfoot>
4493 if ( scripts && jQuery.nodeName( ret[i], "script" ) && (!ret[i].type || ret[i].type.toLowerCase() === "text/javascript") ) {
4520 for ( var type in data.events ) {
4521 if ( special[ type ] ) {
4522 jQuery.event.remove( elem, type );
4525 removeEvent( elem, type, data.handle );
4547 rdashAlpha = /-([a-z])/ig,
4703 // We should always get a number back from opacity
4716 // If we're not dealing with a regular pixel number
4717 // but a number that has a weird ending, we need to convert it to pixels
4722 // Put in the new values to get a computed value out
4781 // Keep a copy of the old load method
4789 // Don't do a request if no elements are being requested
4800 // Default to a GET request
4801 var type = "GET";
4805 // If it's a function
4811 // Otherwise, build a param string
4814 type = "POST";
4823 type: type,
4829 // See if a selector was specified
4831 // Create a dummy div to hold the results
4863 rinput.test(this.type));
4879 // Attach a bunch of functions for handling common AJAX events
4888 get: function( url, data, callback, type ) {
4891 type = type || callback;
4897 type: "GET",
4901 dataType: type
4913 post: function( url, data, callback, type ) {
4916 type = type || callback;
4922 type: "POST",
4926 dataType: type
4937 type: "GET",
4980 type = s.type.toUpperCase();
4982 // convert data if not already a string
4989 if ( type === "GET" ) {
5011 // that a JSONP style response is executed properly
5036 if ( s.cache === false && type === "GET" ) {
5047 if ( s.data && type === "GET" ) {
5051 // Watch for a new set of requests
5060 // If we're requesting a remote document
5061 // and trying to load JSON or Script with a GET
5062 if ( s.dataType === "script" && type === "GET" && remote ) {
5092 // This arises when a base node is used (#2709 and #4378).
5109 // Passing null username, generates a login popup on Opera (#2865)
5111 xhr.open(type, s.url, s.async, s.username, s.password);
5113 xhr.open(type, s.url, s.async);
5135 // Only send the header if it's not a remote XHR
5162 // Wait for a response to come back
5252 xhr.send( type === "POST" || type === "PUT" || type === "DELETE" ? s.data : null );
5265 // If a local callback was specified, fire it and pass it the data
5293 function trigger(type, args) {
5294 (s.context ? jQuery(s.context) : jQuery.event).trigger(type, args);
5302 // If a local callback was specified, fire it
5346 httpData: function( xhr, type, s ) {
5347 var ct = xhr.getResponseHeader("content-type") || "",
5348 xml = type === "xml" || !type && ct.indexOf("xml") >= 0,
5355 // Allow a pre-filtering function to sanitize the response
5358 data = s.dataFilter( data, type );
5364 if ( type === "json" || !type && ct.indexOf("json") >= 0 ) {
5367 // If the type is "script", eval it in global context
5368 } else if ( type === "script" || !type && ct.indexOf("javascript") >= 0 ) {
5376 // Serialize an array of form elements or a set of
5377 // key/values into a query string
5378 param: function( a, traditional ) {
5387 if ( jQuery.isArray(a) || a.jquery ) {
5389 jQuery.each( a, function() {
5396 for ( var prefix in a ) {
5397 buildParams( prefix, a[prefix] );
5409 // Treat each array item as a scalar.
5416 // a server error. Possible fixes are to modify rack's
5436 // If value is a function, invoke it and return its value
5490 // Set the display of the elements in a second loop
5512 // Set the display of the elements in a second loop
5616 // If a +=/-= token was provided, we're doing a relative animation
5728 // Simple function for setting a style value
5780 // Make sure that we start at a small width/height to avoid any
5915 function genFx( type, num ) {
5919 obj[ this ] = type;
6183 var type = name.toLowerCase();
6188 jQuery.css( this[0], type, false, "padding" ) :
6195 jQuery.css( this[0], type, false, margin ? "margin" : "border" ) :
6199 jQuery.fn[ type ] = function( size ) {
6209 self[ type ]( size.call( this, i, self[ type ]() ) );
6213 return ("scrollTo" in elem && elem.document) ? // does it walk and quack like a window?
6219 (elem.nodeType === 9) ? // is it a document
6230 jQuery.css( elem, type ) :
6233 this.css( type, typeof size === "string" ? size : size + "px" );