Skip to content

Commit 1762dc2

Browse files
committed
jquery core: declared undefined locally, to speed up references, and allow munging all their names.
1 parent 6aa4200 commit 1762dc2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/core.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ var jQuery = window.jQuery = window.$ = function( selector, context ) {
2424
var quickExpr = /^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/,
2525

2626
// Is it a simple selector
27-
isSimple = /^.[^:#\[\.]*$/;
27+
isSimple = /^.[^:#\[\.]*$/,
28+
29+
// Will speed up references to undefined, and allows munging its name.
30+
undefined;
2831

2932
jQuery.fn = jQuery.prototype = {
3033
init: function( selector, context ) {

0 commit comments

Comments
 (0)