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/offset.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/offset.js')
-rw-r--r-- | src/offset.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/offset.js b/src/offset.js index 7ae9cb909..d12921dff 100644 --- a/src/offset.js +++ b/src/offset.js @@ -121,7 +121,7 @@ jQuery.offset = { body.removeChild( container ); body = container = innerDiv = checkDiv = table = td = null; - jQuery.offset.initialize = function() {}; + jQuery.offset.initialize = jQuery.noop; }, bodyOffset: function( body ) { |