title: Want to reverse the order of click events attached to one element in jquery
body: <p>I have one scenario where I want to change order of click events attached to one element. I am using jquery 1.3.2, I used following code to reverse the order of events </p>
  
  <pre><code>$("#button").bind('click',first);
  
  var foo = $.data( $('#button').get(0), 'events' ).click;
  var firstHandler;
  $.each( foo, function(i,defination) {
      firstHandler = defination;
      $('#button').unbind('click', defination);
  });
  
  $("#button").bind('click',second);
  $("#button").bind('click',firstHandler);
  
  function first() { alert("first"); };
  function second() { alert("second"); };
  </code></pre>
  
  <p>This code works well in all other browsers(FF, IE, Safari) but not working as expected in Chrome. Here is a online version of my code please have a look <a href="http://jsfiddle.net/PKRR8/18/" rel="nofollow">Working code at Online Fiddle</a></p>
  
  <p>Can Anybody guide me ?</p>