Is it ok to declare same window events multiple times in jQuery?

Is it ok to declare same window events multiple times in jQuery?

I have a few elements listening to window resize and scroll events. In order to make the code clear for reading, I declared same window events multiple times in different blocks, like the following...
  1. $('#foo')...
  2. $(window).resize(function() {
  3.       $('#foo')...
  4. });
  5. // lots of code...
  6. $('#bar')...
  7. $(window).resize(function() {
  8.       $('#bar')...
  9. });
  10. // and so on..
where I believe generally it should be written as
  1. $(window).resize(function() {
  2.       $('#foo')...
  3.       $('#bar')...
  4. });
  5. // lots of code
  6. $('#foo')...
  7. // lots of code
  8. $('bar')...

My question is, will it make any difference to jQuery performance if I declare window events multiple times?