Permalink
Browse files

jquery core: declared undefined locally, to speed up references, and …

…allow munging all their names.
  • Loading branch information...
flesler committed May 11, 2008
1 parent 6aa4200 commit 1762dc24d66c7cbda189acffc21694884bb2ec7a
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/core.js
View
@@ -24,7 +24,10 @@ var jQuery = window.jQuery = window.$ = function( selector, context ) {
var quickExpr = /^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/,
// Is it a simple selector
- isSimple = /^.[^:#\[\.]*$/;
+ isSimple = /^.[^:#\[\.]*$/,
+
+// Will speed up references to undefined, and allows munging its name.
+ undefined;
jQuery.fn = jQuery.prototype = {
init: function( selector, context ) {

0 comments on commit 1762dc2

Please sign in to comment.