<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -4,7 +4,7 @@
  * This work is distributed under the MIT License:
  * http://www.opensource.org/licenses/mit-license.php
  *
- * Copyright 2008, Ben Vinegar [ ben ! benlog dot org ]
+ * Copyright Ben Vinegar [ ben ! benlog dot org ]
  *
  * Usage:
  *
@@ -20,7 +20,13 @@
       $(this).unbind('click', labelClickEvent); 
       
       // call .click on owned input
-      $('input', this).click();
+      $input = $(this).find('input');
+      
+      if ($input.is(':checked')) {
+        $input.removeAttr('checked').change();
+      } else {
+        $input.attr('checked', 'checked').change();
+      }
       
       // re-apply the event after we're done
       $(this).click(labelClickEvent);
@@ -48,9 +54,17 @@
       })
       .mouseout(function() {
         $(containers).click(labelClickEvent);
+    }).focus(function() {
+        $(containers).unbind('click', labelClickEvent);
+    }).blur(function() {
+        $(containers).click(labelClickEvent);
+    }).click(function() {
+        if($(this).is('[type=checkbox], [type=radio]') &amp;&amp; $.browser.msie) {
+          $(this).change();
+        }
     });
       
     return this;
   }
   
-})(jQuery);
+})(jQuery);
\ No newline at end of file</diff>
      <filename>jquery.labelize.js</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>e973a34e8338b5f618c0e860b27ac6927047a73b</id>
    </parent>
  </parents>
  <author>
    <name>bentlegen</name>
    <email>ben@benlog.org</email>
  </author>
  <url>http://github.com/bentlegen/labelize/commit/5b2dbc53474e65eab9064c126b09c3160d4f4bd4</url>
  <id>5b2dbc53474e65eab9064c126b09c3160d4f4bd4</id>
  <committed-date>2009-07-27T10:39:49-07:00</committed-date>
  <authored-date>2009-07-27T10:39:49-07:00</authored-date>
  <message>Now works with .change() instead of .click(), preserves event-firing via tab/enter on Windows</message>
  <tree>9ff3a4926508edad55515ae82486416dbfa2a054</tree>
  <committer>
    <name>bentlegen</name>
    <email>ben@benlog.org</email>
  </committer>
</commit>
