r59697 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r59696‎ | r59697 | r59698 >
Date:10:22, 3 December 2009
Author:catrope
Status:ok
Tags:
Comment:
Revert js2stopgap to its good state before r58959 tried to prettify it and r58997, r59666 and r59671 fixed the resulting breakage.
Modified paths:
  • /trunk/phase3/js2/js2stopgap.js (modified) (history)
  • /trunk/phase3/js2/js2stopgap.min.js (modified) (history)

Diff [purge]

Index: trunk/phase3/js2/js2stopgap.js
@@ -9,9 +9,9 @@
1010 * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009)
1111 * Revision: 6246
1212 */
13 -( function() {
 13+(function(){
1414
15 -var
 15+var
1616 // Will speed up references to window, and allows munging its name.
1717 window = this,
1818 // Will speed up references to undefined, and allows munging its name.
@@ -30,7 +30,7 @@
3131 // (both of which we optimize for)
3232 quickExpr = /^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,
3333 // Is it a simple selector
34 - isSimple = /^.[^:# \[\.,]*$/;
 34+ isSimple = /^.[^:#\[\.,]*$/;
3535
3636 jQuery.fn = jQuery.prototype = {
3737 init: function( selector, context ) {
@@ -50,7 +50,7 @@
5151 var match = quickExpr.exec( selector );
5252
5353 // Verify a match, and that no context was specified for #id
54 - if ( match && ( match[1] || !context ) ) {
 54+ if ( match && (match[1] || !context) ) {
5555
5656 // HANDLE: $(html) -> $(array)
5757 if ( match[1] )
@@ -88,9 +88,9 @@
8989 this.context = selector.context;
9090 }
9191
92 - return this.setArray( jQuery.isArray( selector ) ?
 92+ return this.setArray(jQuery.isArray( selector ) ?
9393 selector :
94 - jQuery.makeArray( selector ) );
 94+ jQuery.makeArray(selector));
9595 },
9696
9797 // Start with an empty selector
@@ -128,7 +128,7 @@
129129 ret.context = this.context;
130130
131131 if ( name === "find" )
132 - ret.selector = this.selector + ( this.selector ? " " : "" ) + selector;
 132+ ret.selector = this.selector + (this.selector ? " " : "") + selector;
133133 else if ( name )
134134 ret.selector = this.selector + "." + name + "(" + selector + ")";
135135
@@ -174,12 +174,12 @@
175175 return this[0] && jQuery[ type || "attr" ]( this[0], name );
176176
177177 else {
178 - options = { };
 178+ options = {};
179179 options[ name ] = value;
180180 }
181181
182182 // Check to see if we're setting style values
183 - return this.each( function( i ) {
 183+ return this.each(function(i){
184184 // Set all the styles
185185 for ( name in options )
186186 jQuery.attr(
@@ -188,30 +188,30 @@
189189 this,
190190 name, jQuery.prop( this, options[ name ], type, i, name )
191191 );
192 - } );
 192+ });
193193 },
194194
195195 css: function( key, value ) {
196196 // ignore negative width and height values
197 - if ( ( key == 'width' || key == 'height' ) && parseFloat( value ) < 0 )
 197+ if ( (key == 'width' || key == 'height') && parseFloat(value) < 0 )
198198 value = undefined;
199199 return this.attr( key, value, "curCSS" );
200200 },
201201
202202 text: function( text ) {
203203 if ( typeof text !== "object" && text != null )
204 - return this.empty().append( ( this[0] && this[0].ownerDocument || document ).createTextNode( text ) );
 204+ return this.empty().append( (this[0] && this[0].ownerDocument || document).createTextNode( text ) );
205205
206206 var ret = "";
207207
208 - jQuery.each( text || this, function() {
209 - jQuery.each( this.childNodes, function() {
 208+ jQuery.each( text || this, function(){
 209+ jQuery.each( this.childNodes, function(){
210210 if ( this.nodeType != 8 )
211211 ret += this.nodeType != 1 ?
212212 this.nodeValue :
213213 jQuery.fn.text( [ this ] );
214 - } );
215 - } );
 214+ });
 215+ });
216216
217217 return ret;
218218 },
@@ -219,60 +219,60 @@
220220 wrapAll: function( html ) {
221221 if ( this[0] ) {
222222 // The elements to wrap the target around
223 - var wrap = jQuery( html, this[0].ownerDocument ). clone ();
 223+ var wrap = jQuery( html, this[0].ownerDocument ).clone();
224224
225225 if ( this[0].parentNode )
226226 wrap.insertBefore( this[0] );
227227
228 - wrap.map( function() {
 228+ wrap.map(function(){
229229 var elem = this;
230230
231231 while ( elem.firstChild )
232232 elem = elem.firstChild;
233233
234234 return elem;
235 - } ).append( this );
 235+ }).append(this);
236236 }
237237
238238 return this;
239239 },
240240
241241 wrapInner: function( html ) {
242 - return this.each( function() {
 242+ return this.each(function(){
243243 jQuery( this ).contents().wrapAll( html );
244 - } );
 244+ });
245245 },
246246
247247 wrap: function( html ) {
248 - return this.each( function() {
 248+ return this.each(function(){
249249 jQuery( this ).wrapAll( html );
250 - } );
 250+ });
251251 },
252252
253253 append: function() {
254 - return this.domManip( arguments, true, function( elem ) {
255 - if ( this.nodeType == 1 )
 254+ return this.domManip(arguments, true, function(elem){
 255+ if (this.nodeType == 1)
256256 this.appendChild( elem );
257 - } );
 257+ });
258258 },
259259
260260 prepend: function() {
261 - return this.domManip( arguments, true, function( elem ) {
262 - if ( this.nodeType == 1 )
 261+ return this.domManip(arguments, true, function(elem){
 262+ if (this.nodeType == 1)
263263 this.insertBefore( elem, this.firstChild );
264 - } );
 264+ });
265265 },
266266
267267 before: function() {
268 - return this.domManip( arguments, false, function( elem ) {
 268+ return this.domManip(arguments, false, function(elem){
269269 this.parentNode.insertBefore( elem, this );
270 - } );
 270+ });
271271 },
272272
273273 after: function() {
274 - return this.domManip( arguments, false, function( elem ) {
 274+ return this.domManip(arguments, false, function(elem){
275275 this.parentNode.insertBefore( elem, this.nextSibling );
276 - } );
 276+ });
277277 },
278278
279279 end: function() {
@@ -292,16 +292,16 @@
293293 jQuery.find( selector, this[0], ret );
294294 return ret;
295295 } else {
296 - return this.pushStack( jQuery.unique( jQuery.map( this, function( elem ) {
 296+ return this.pushStack( jQuery.unique(jQuery.map(this, function(elem){
297297 return jQuery.find( selector, elem );
298 - } ) ), "find", selector );
 298+ })), "find", selector );
299299 }
300300 },
301301
302 - clone : function( events ) {
 302+ clone: function( events ) {
303303 // Do the clone
304 - var ret = this.map( function() {
305 - if ( !jQuery.support.noCloneEvent && !jQuery.isXMLDoc( this ) ) {
 304+ var ret = this.map(function(){
 305+ if ( !jQuery.support.noCloneEvent && !jQuery.isXMLDoc(this) ) {
306306 // IE copies events bound via attachEvent when
307307 // using cloneNode. Calling detachEvent on the
308308 // clone will also remove the events from the orignal
@@ -312,21 +312,21 @@
313313 // the name attribute on an input).
314314 var html = this.outerHTML;
315315 if ( !html ) {
316 - var div = this.ownerDocument.createElement( "div" );
317 - div.appendChild( this.cloneNode( true ) );
 316+ var div = this.ownerDocument.createElement("div");
 317+ div.appendChild( this.cloneNode(true) );
318318 html = div.innerHTML;
319319 }
320320
321 - return jQuery.clean( [ html.replace( / jQuery\d+="(?:\d+|null)"/g, "" ).replace( /^\s*/, "" ) ] )[0];
 321+ return jQuery.clean([html.replace(/ jQuery\d+="(?:\d+|null)"/g, "").replace(/^\s*/, "")])[0];
322322 } else
323 - return this.cloneNode( true );
324 - } );
 323+ return this.cloneNode(true);
 324+ });
325325
326326 // Copy the events from the original to the clone
327327 if ( events === true ) {
328 - var orig = this.find( "*" ).andSelf(), i = 0;
 328+ var orig = this.find("*").andSelf(), i = 0;
329329
330 - ret.find( "*" ).andSelf().each( function() {
 330+ ret.find("*").andSelf().each(function(){
331331 if ( this.nodeName !== orig[i].nodeName )
332332 return;
333333
@@ -339,7 +339,7 @@
340340 }
341341
342342 i++;
343 - } );
 343+ });
344344 }
345345
346346 // Return the cloned set
@@ -349,30 +349,30 @@
350350 filter: function( selector ) {
351351 return this.pushStack(
352352 jQuery.isFunction( selector ) &&
353 - jQuery.grep( this, function( elem, i ) {
 353+ jQuery.grep(this, function(elem, i){
354354 return selector.call( elem, i );
355 - } ) ||
 355+ }) ||
356356
357 - jQuery.multiFilter( selector, jQuery.grep( this, function( elem ) {
 357+ jQuery.multiFilter( selector, jQuery.grep(this, function(elem){
358358 return elem.nodeType === 1;
359 - } ) ), "filter", selector );
 359+ }) ), "filter", selector );
360360 },
361361
362362 closest: function( selector ) {
363 - var pos = jQuery.expr.match.POS.test( selector ) ? jQuery( selector ) : null,
 363+ var pos = jQuery.expr.match.POS.test( selector ) ? jQuery(selector) : null,
364364 closer = 0;
365365
366 - return this.map( function() {
 366+ return this.map(function(){
367367 var cur = this;
368368 while ( cur && cur.ownerDocument ) {
369 - if ( pos ? pos.index( cur ) > - 1 : jQuery( cur ).is( selector ) ) {
370 - jQuery.data( cur, "closest", closer );
 369+ if ( pos ? pos.index(cur) > -1 : jQuery(cur).is(selector) ) {
 370+ jQuery.data(cur, "closest", closer);
371371 return cur;
372372 }
373373 cur = cur.parentNode;
374374 closer++;
375375 }
376 - } );
 376+ });
377377 },
378378
379379 not: function( selector ) {
@@ -384,9 +384,9 @@
385385 selector = jQuery.multiFilter( selector, this );
386386
387387 var isArrayLike = selector.length && selector[selector.length - 1] !== undefined && !selector.nodeType;
388 - return this.filter( function() {
 388+ return this.filter(function() {
389389 return isArrayLike ? jQuery.inArray( this, selector ) < 0 : this != selector;
390 - } );
 390+ });
391391 },
392392
393393 add: function( selector ) {
@@ -395,7 +395,7 @@
396396 typeof selector === "string" ?
397397 jQuery( selector ) :
398398 jQuery.makeArray( selector )
399 - ) ) );
 399+ )));
400400 },
401401
402402 is: function( selector ) {
@@ -407,12 +407,12 @@
408408 },
409409
410410 val: function( value ) {
411 - if ( value === undefined ) {
 411+ if ( value === undefined ) {
412412 var elem = this[0];
413413
414414 if ( elem ) {
415 - if ( jQuery.nodeName( elem, 'option' ) )
416 - return ( elem.attributes.value || { } ).specified ? elem.value : elem.text;
 415+ if( jQuery.nodeName( elem, 'option' ) )
 416+ return (elem.attributes.value || {}).specified ? elem.value : elem.text;
417417
418418 // We need to handle select boxes special
419419 if ( jQuery.nodeName( elem, "select" ) ) {
@@ -431,7 +431,7 @@
432432
433433 if ( option.selected ) {
434434 // Get the specifc value for the option
435 - value = jQuery( option ).val();
 435+ value = jQuery(option).val();
436436
437437 // We don't need an array for one selects
438438 if ( one )
@@ -442,11 +442,11 @@
443443 }
444444 }
445445
446 - return values;
 446+ return values;
447447 }
448448
449449 // Everything else, we just grab the value
450 - return ( elem.value || "" ).replace( /\r/g, "" );
 450+ return (elem.value || "").replace(/\r/g, "");
451451
452452 }
453453
@@ -456,35 +456,35 @@
457457 if ( typeof value === "number" )
458458 value += '';
459459
460 - return this.each( function() {
 460+ return this.each(function(){
461461 if ( this.nodeType != 1 )
462462 return;
463463
464 - if ( jQuery.isArray( value ) && /radio|checkbox/ .test( this.type ) )
465 - this.checked = ( jQuery.inArray( this.value, value ) >= 0 ||
466 - jQuery.inArray( this.name, value ) >= 0 );
 464+ if ( jQuery.isArray(value) && /radio|checkbox/.test( this.type ) )
 465+ this.checked = (jQuery.inArray(this.value, value) >= 0 ||
 466+ jQuery.inArray(this.name, value) >= 0);
467467
468468 else if ( jQuery.nodeName( this, "select" ) ) {
469 - var values = jQuery.makeArray( value );
 469+ var values = jQuery.makeArray(value);
470470
471 - jQuery( "option", this ).each( function() {
472 - this.selected = ( jQuery.inArray( this.value, values ) >= 0 ||
473 - jQuery.inArray( this.text, values ) >= 0 );
474 - } );
 471+ jQuery( "option", this ).each(function(){
 472+ this.selected = (jQuery.inArray( this.value, values ) >= 0 ||
 473+ jQuery.inArray( this.text, values ) >= 0);
 474+ });
475475
476476 if ( !values.length )
477 - this.selectedIndex = - 1;
 477+ this.selectedIndex = -1;
478478
479479 } else
480480 this.value = value;
481 - } );
 481+ });
482482 },
483483
484484 html: function( value ) {
485485 return value === undefined ?
486 - ( this[0] ?
487 - this[0].innerHTML.replace( / jQuery\d+="(?:\d+|null)"/g, "" ) :
488 - null ) :
 486+ (this[0] ?
 487+ this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g, "") :
 488+ null) :
489489 this.empty().append( value );
490490 },
491491
@@ -493,18 +493,18 @@
494494 },
495495
496496 eq: function( i ) {
497 - return this.slice( i, + i + 1 );
 497+ return this.slice( i, +i + 1 );
498498 },
499499
500500 slice: function() {
501501 return this.pushStack( Array.prototype.slice.apply( this, arguments ),
502 - "slice", Array.prototype.slice.call( arguments ).join( "," ) );
 502+ "slice", Array.prototype.slice.call(arguments).join(",") );
503503 },
504504
505505 map: function( callback ) {
506 - return this.pushStack( jQuery.map( this, function( elem, i ) {
 506+ return this.pushStack( jQuery.map(this, function(elem, i){
507507 return callback.call( elem, i, elem );
508 - } ) );
 508+ }));
509509 },
510510
511511 andSelf: function() {
@@ -513,14 +513,14 @@
514514
515515 domManip: function( args, table, callback ) {
516516 if ( this[0] ) {
517 - var fragment = ( this[0].ownerDocument || this[0] ).createDocumentFragment(),
518 - scripts = jQuery.clean( args, ( this[0].ownerDocument || this[0] ), fragment ),
 517+ var fragment = (this[0].ownerDocument || this[0]).createDocumentFragment(),
 518+ scripts = jQuery.clean( args, (this[0].ownerDocument || this[0]), fragment ),
519519 first = fragment.firstChild;
520520
521521 if ( first )
522522 for ( var i = 0, l = this.length; i < l; i++ )
523 - callback.call( root( this[i], first ), this.length > 1 || i > 0 ?
524 - fragment.cloneNode( true ) : fragment );
 523+ callback.call( root(this[i], first), this.length > 1 || i > 0 ?
 524+ fragment.cloneNode(true) : fragment );
525525
526526 if ( scripts )
527527 jQuery.each( scripts, evalScript );
@@ -529,9 +529,9 @@
530530 return this;
531531
532532 function root( elem, cur ) {
533 - return table && jQuery.nodeName( elem, "table" ) && jQuery.nodeName( cur, "tr" ) ?
534 - ( elem.getElementsByTagName( "tbody" )[0] ||
535 - elem.appendChild( elem.ownerDocument.createElement( "tbody" ) ) ) :
 533+ return table && jQuery.nodeName(elem, "table") && jQuery.nodeName(cur, "tr") ?
 534+ (elem.getElementsByTagName("tbody")[0] ||
 535+ elem.appendChild(elem.ownerDocument.createElement("tbody"))) :
536536 elem;
537537 }
538538 }
@@ -542,11 +542,11 @@
543543
544544 function evalScript( i, elem ) {
545545 if ( elem.src )
546 - jQuery.ajax( {
 546+ jQuery.ajax({
547547 url: elem.src,
548548 async: false,
549549 dataType: "script"
550 - } );
 550+ });
551551
552552 else
553553 jQuery.globalEval( elem.text || elem.textContent || elem.innerHTML || "" );
@@ -555,25 +555,25 @@
556556 elem.parentNode.removeChild( elem );
557557 }
558558
559 -function now() {
560 - return + new Date;
 559+function now(){
 560+ return +new Date;
561561 }
562562
563563 jQuery.extend = jQuery.fn.extend = function() {
564564 // copy reference to target object
565 - var target = arguments[0] || { }, i = 1, length = arguments.length, deep = false, options;
 565+ var target = arguments[0] || {}, i = 1, length = arguments.length, deep = false, options;
566566
567567 // Handle a deep copy situation
568568 if ( typeof target === "boolean" ) {
569569 deep = target;
570 - target = arguments[1] || { };
 570+ target = arguments[1] || {};
571571 // skip the boolean and the target
572572 i = 2;
573573 }
574574
575575 // Handle case when target is a string or something (possible in deep copy)
576 - if ( typeof target !== "object" && !jQuery.isFunction( target ) )
577 - target = { };
 576+ if ( typeof target !== "object" && !jQuery.isFunction(target) )
 577+ target = {};
578578
579579 // extend jQuery itself if only one argument is passed
580580 if ( length == i ) {
@@ -583,7 +583,7 @@
584584
585585 for ( ; i < length; i++ )
586586 // Only deal with non-null/undefined values
587 - if ( ( options = arguments[ i ] ) != null )
 587+ if ( (options = arguments[ i ]) != null )
588588 // Extend the base object
589589 for ( var name in options ) {
590590 var src = target[ name ], copy = options[ name ];
@@ -594,7 +594,7 @@
595595
596596 // Recurse if we're merging object values
597597 if ( deep && copy && typeof copy === "object" && !copy.nodeType )
598 - target[ name ] = jQuery.extend( deep,
 598+ target[ name ] = jQuery.extend( deep,
599599 // Never move original objects, clone them
600600 src || ( copy.length != null ? [ ] : { } )
601601 , copy );
@@ -610,12 +610,12 @@
611611 };
612612
613613 // exclude the following css properties to add px
614 -var exclude = /z-?index|font-?weight|opacity|zoom|line-?height/i,
 614+var exclude = /z-?index|font-?weight|opacity|zoom|line-?height/i,
615615 // cache defaultView
616 - defaultView = document.defaultView || { },
 616+ defaultView = document.defaultView || {},
617617 toString = Object.prototype.toString;
618618
619 -jQuery.extend( {
 619+jQuery.extend({
620620 noConflict: function( deep ) {
621621 window.$ = _$;
622622
@@ -629,11 +629,11 @@
630630 // Since version 1.3, DOM methods and functions like alert
631631 // aren't supported. They return false on IE (#2968).
632632 isFunction: function( obj ) {
633 - return toString.call( obj ) === "[object Function]";
 633+ return toString.call(obj) === "[object Function]";
634634 },
635635
636636 isArray: function( obj ) {
637 - return toString.call( obj ) === "[object Array]";
 637+ return toString.call(obj) === "[object Array]";
638638 },
639639
640640 // check if an element is in a (or is an) XML document
@@ -644,11 +644,11 @@
645645
646646 // Evalulates a script in a global context
647647 globalEval: function( data ) {
648 - if ( data && /\S/.test( data ) ) {
 648+ if ( data && /\S/.test(data) ) {
649649 // Inspired by code by Andrea Giammarchi
650650 // http://webreflection.blogspot.com/2007/08/global-scope-evaluation-and-dom.html
651 - var head = document.getElementsByTagName( "head" )[0] || document.documentElement,
652 - script = document.createElement( "script" );
 651+ var head = document.getElementsByTagName("head")[0] || document.documentElement,
 652+ script = document.createElement("script");
653653
654654 script.type = "text/javascript";
655655 if ( jQuery.support.scriptEval )
@@ -689,7 +689,7 @@
690690 break;
691691 } else
692692 for ( var value = object[0];
693 - i < length && callback.call( value, i, value ) !== false; value = object[++i] ) { }
 693+ i < length && callback.call( value, i, value ) !== false; value = object[++i] ){}
694694 }
695695
696696 return object;
@@ -709,31 +709,31 @@
710710 className: {
711711 // internal only, use addClass("class")
712712 add: function( elem, classNames ) {
713 - jQuery.each( ( classNames || "" ).split( /\s+/ ), function( i, className ) {
 713+ jQuery.each((classNames || "").split(/\s+/), function(i, className){
714714 if ( elem.nodeType == 1 && !jQuery.className.has( elem.className, className ) )
715 - elem.className += ( elem.className ? " " : "" ) + className;
716 - } );
 715+ elem.className += (elem.className ? " " : "") + className;
 716+ });
717717 },
718718
719719 // internal only, use removeClass("class")
720720 remove: function( elem, classNames ) {
721 - if ( elem.nodeType == 1 )
 721+ if (elem.nodeType == 1)
722722 elem.className = classNames !== undefined ?
723 - jQuery.grep( elem.className.split( /\s+/ ), function( className ) {
 723+ jQuery.grep(elem.className.split(/\s+/), function(className){
724724 return !jQuery.className.has( classNames, className );
725 - } ).join( " " ) :
 725+ }).join(" ") :
726726 "";
727727 },
728728
729729 // internal only, use hasClass("class")
730730 has: function( elem, className ) {
731 - return elem && jQuery.inArray( className, ( elem.className || elem ).toString().split( /\s+/ ) ) > -1;
 731+ return elem && jQuery.inArray( className, (elem.className || elem).toString().split(/\s+/) ) > -1;
732732 }
733733 },
734734
735735 // A method for quickly swapping in/out CSS properties to get correct calculations
736736 swap: function( elem, options, callback ) {
737 - var old = { };
 737+ var old = {};
738738 // Remember the old values, and insert the new ones
739739 for ( var name in options ) {
740740 old[ name ] = elem.style[ name ];
@@ -759,12 +759,12 @@
760760
761761 jQuery.each( which, function() {
762762 if ( !extra )
763 - val -= parseFloat( jQuery.curCSS( elem, "padding" + this, true ) ) || 0;
 763+ val -= parseFloat(jQuery.curCSS( elem, "padding" + this, true)) || 0;
764764 if ( extra === "margin" )
765 - val += parseFloat( jQuery.curCSS( elem, "margin" + this, true ) ) || 0;
 765+ val += parseFloat(jQuery.curCSS( elem, "margin" + this, true)) || 0;
766766 else
767 - val -= parseFloat( jQuery.curCSS( elem, "border" + this + "Width", true ) ) || 0;
768 - } );
 767+ val -= parseFloat(jQuery.curCSS( elem, "border" + this + "Width", true)) || 0;
 768+ });
769769 }
770770
771771 if ( elem.offsetWidth !== 0 )
@@ -772,7 +772,7 @@
773773 else
774774 jQuery.swap( elem, props, getWH );
775775
776 - return Math.max( 0, Math.round( val ) );
 776+ return Math.max(0, Math.round(val));
777777 }
778778
779779 return jQuery.curCSS( elem, name, force );
@@ -815,9 +815,9 @@
816816 ret = "1";
817817
818818 } else if ( elem.currentStyle ) {
819 - var camelCase = name.replace( /\-(\w)/g, function( all, letter ) {
 819+ var camelCase = name.replace(/\-(\w)/g, function(all, letter){
820820 return letter.toUpperCase();
821 - } );
 821+ });
822822
823823 ret = elem.currentStyle[ name ] || elem.currentStyle[ camelCase ];
824824
@@ -9506,4 +9506,4 @@
95079507 }
95089508
95099509 // Define a dummy mvJsLoader.doLoad() function
9510 -mvJsLoader = { doLoad: function( deps, callback ) { callback(); } };
 9510+mvJsLoader = { doLoad: function( deps, callback ) { callback(); } };
\ No newline at end of file
Index: trunk/phase3/js2/js2stopgap.min.js
@@ -1,6 +1,6 @@
22
33 (function(){var
4 -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;}
 4+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;}
55 if(typeof selector==="string"){var match=quickExpr.exec(selector);if(match&&(match[1]||!context)){if(match[1])
66 selector=jQuery.clean([match[1]],context);else{var elem=document.getElementById(match[3]);if(elem&&elem.id!=match[3])
77 return jQuery().find(selector);var ret=jQuery(elem||[]);ret.context=document;ret.selector=selector;return ret;}}else

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r58959Run patched version of stylize.php (http://pywiki.pastey.net/128379 for diff)...siebrand17:54, 12 November 2009
r58997Firefox doesn't like spaces between the pattern and the modifiersmrzman04:50, 13 November 2009
r59666Fix jQuery bug filed upstream as http://dev.jquery.com/ticket/5583 . Also fix...catrope16:28, 2 December 2009
r59671Fix more abuses of spacing in regexes in jQuerycatrope18:44, 2 December 2009

Status & tagging log