Commit 83be3dca authored by Ariel Flesler's avatar Ariel Flesler

jquery core: Misc file size optimizations.

parent ddec4fdc
...@@ -9,28 +9,26 @@ ...@@ -9,28 +9,26 @@
* $Rev$ * $Rev$
*/ */
// Will speed up references to window, and allows munging its name. var
var window = this; // Will speed up references to window, and allows munging its name.
window = this,
// Map over jQuery in case of overwrite // Will speed up references to undefined, and allows munging its name.
var _jQuery = window.jQuery, undefined,
// Map over the $ in case of overwrite // Map over jQuery in case of overwrite
_$ = window.$; _jQuery = window.jQuery,
// Map over the $ in case of overwrite
var jQuery = window.jQuery = window.$ = function( selector, context ) { _$ = window.$,
// The jQuery object is actually just the init constructor 'enhanced'
return new jQuery.fn.init( selector, context ); jQuery = window.jQuery = window.$ = function( selector, context ) {
}; // The jQuery object is actually just the init constructor 'enhanced'
return new jQuery.fn.init( selector, context );
// A simple way to check for HTML strings or ID strings },
// (both of which we optimize for)
var quickExpr = /^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,
// Is it a simple selector
isSimple = /^.[^:#\[\.,]*$/,
// Will speed up references to undefined, and allows munging its name. // A simple way to check for HTML strings or ID strings
undefined; // (both of which we optimize for)
quickExpr = /^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,
// Is it a simple selector
isSimple = /^.[^:#\[\.,]*$/;
jQuery.fn = jQuery.prototype = { jQuery.fn = jQuery.prototype = {
init: function( selector, context ) { init: function( selector, context ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment