diff options
author | John Resig <jeresig@gmail.com> | 2007-08-21 05:43:44 +0000 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2007-08-21 05:43:44 +0000 |
commit | b6d920cf05fae3dcfe515166013ce39411ac5e16 (patch) | |
tree | 8c7e1879e92f4b7de49a3ca8398b2f96de61730f /src/event | |
parent | 8c15e852a4614ba5a5100e1c6e8a833c39b4ca79 (diff) | |
download | jquery-b6d920cf05fae3dcfe515166013ce39411ac5e16.tar.gz jquery-b6d920cf05fae3dcfe515166013ce39411ac5e16.zip |
Fix for a selector speed regression (calling a simple selector many times resulted in a significant speed down). This has been fixed by breaking the RegExps out into the global scope. This required that a closure be implemented around the full jQuery script (which is now the case). Some simple changes were made in addition to the RegExp one, allowing for some greater flexibility on our part - and hopefully better compression.
Speed results:
http://dev.jquery.com/~john/ticket/1351/ vs.
http://dev.jquery.com/~john/ticket/1351/113.html vs.
http://dev.jquery.com/~john/ticket/1351/112.html
Diffstat (limited to 'src/event')
-rw-r--r-- | src/event/event.js | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/event/event.js b/src/event/event.js index cbad528f3..23dbd6fd4 100644 --- a/src/event/event.js +++ b/src/event/event.js @@ -578,8 +578,6 @@ jQuery.extend({ } }); -new function(){ - /** * Bind a function to the scroll event of each matched element. * @@ -976,5 +974,3 @@ new function(){ // A fallback to window.onload, that will always work jQuery.event.add( window, "load", jQuery.ready ); - -}; |