diff options
author | jeresig <jeresig@gmail.com> | 2009-12-31 09:50:49 -0500 |
---|---|---|
committer | jeresig <jeresig@gmail.com> | 2009-12-31 09:50:49 -0500 |
commit | 6cb2945837ccca55204191a8e7a70b2b2486c28e (patch) | |
tree | 84c70783906dd9c784fbf96f815e88900b287077 /src/core.js | |
parent | fe6c86d53046b0f4d648f61c0b8e75387af65152 (diff) | |
download | jquery-6cb2945837ccca55204191a8e7a70b2b2486c28e.tar.gz jquery-6cb2945837ccca55204191a8e7a70b2b2486c28e.zip |
Rather than declaring empty anonymous functions all around, introduce and use a single empty function. Thanks to Matt Kruse for the suggestion.
Diffstat (limited to 'src/core.js')
-rw-r--r-- | src/core.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core.js b/src/core.js index 944e8a9bf..93f04ec7d 100644 --- a/src/core.js +++ b/src/core.js @@ -464,6 +464,8 @@ jQuery.extend({ return true; }, + noop: function() {}, + // Evalulates a script in a global context globalEval: function( data ) { if ( data && rnotwhite.test(data) ) { |