// (both of which we optimize for)
quickExpr = /^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,
// Is it a simple selector
- isSimple = / ^ .[ ^ :# \[\.,]*$/;
+ isSimple = /^.[^:# \[\.,]*$/;
jQuery.fn = jQuery.prototype = {
init: function( selector, context ) {
if ( this.nodeType != 1 )
return;
- if ( jQuery.isArray( value ) && / radio | checkbox / .test( this.type ) )
+ if ( jQuery.isArray( value ) && /radio|checkbox/ .test( this.type ) )
this.checked = ( jQuery.inArray( this.value, value ) >= 0 ||
jQuery.inArray( this.name, value ) >= 0 );
}
// Make sure we're using the right name for getting the float value
- if ( name.match( / float /i ) )
+ if ( name.match( /float/i ) )
name = styleFloat;
if ( !force && style && style[ name ] )
else if ( defaultView.getComputedStyle ) {
// Only "float" is needed here
- if ( name.match( / float /i ) )
+ if ( name.match( /float/i ) )
name = "float";
- name = name.replace( / ( [A - Z] ) /g, "-$1" ).toLowerCase();
+ name = name.replace( /([A-Z])/g, "-$1" ).toLowerCase();
var computedStyle = defaultView.getComputedStyle( elem, null );
(function(){var
-window=this,undefined,_jQuery=window.jQuery,_$=window.$,jQuery=window.jQuery=window.$=function(selector,context){return new jQuery.fn.init(selector,context);},quickExpr=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,isSimple=/^.[^:#\[\.,]*$/;jQuery.fn=jQuery.prototype={init:function(selector,context){selector=selector||document;if(selector.nodeType){this[0]=selector;this.length=1;this.context=selector;return this;}
+window=this,undefined,_jQuery=window.jQuery,_$=window.$,jQuery=window.jQuery=window.$=function(selector,context){return new jQuery.fn.init(selector,context);},quickExpr=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,isSimple=/^.[^:# \[\.,]*$/;jQuery.fn=jQuery.prototype={init:function(selector,context){selector=selector||document;if(selector.nodeType){this[0]=selector;this.length=1;this.context=selector;return this;}
if(typeof selector==="string"){var match=quickExpr.exec(selector);if(match&&(match[1]||!context)){if(match[1])
selector=jQuery.clean([match[1]],context);else{var elem=document.getElementById(match[3]);if(elem&&elem.id!=match[3])
return jQuery().find(selector);var ret=jQuery(elem||[]);ret.context=document;ret.selector=selector;return ret;}}else