Commit 1762dc24 authored by Ariel Flesler's avatar Ariel Flesler

jquery core: declared undefined locally, to speed up references, and allow munging all their names.

parent 6aa4200a
...@@ -24,7 +24,10 @@ var jQuery = window.jQuery = window.$ = function( selector, context ) { ...@@ -24,7 +24,10 @@ var jQuery = window.jQuery = window.$ = function( selector, context ) {
var quickExpr = /^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/, var quickExpr = /^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/,
// Is it a simple selector // Is it a simple selector
isSimple = /^.[^:#\[\.]*$/; isSimple = /^.[^:#\[\.]*$/,
// Will speed up references to undefined, and allows munging its name.
undefined;
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