Permalink
Browse files

Fixed problem with elements not bubbling up change events.

  • Loading branch information...
1 parent c3fa193 commit 60dffb7abce964a31ff048b146ea681557f2546b @karbassi committed Apr 27, 2012
Showing with 6 additions and 5 deletions.
  1. +4 −3 custom-form-elements.js
  2. +2 −2 custom-form-elements.min.js
View
@@ -1,5 +1,5 @@
/*
-Custom Form Elements v0.12
+Custom Form Elements v0.13
http://github.com/karbassi/Custom-Form-Elements
@@ -202,8 +202,6 @@ Example:
mouseup: function(el, e) {
if (!(e.isTrigger || e.which === 1)) { return; } // Only respond to left mouse clicks
- // e.preventDefault();
-
var self = this;
var input = document.getElementById( el.id.split('cfe-').pop() );
@@ -228,6 +226,9 @@ Example:
if (!e.isTrigger ) {
input.checked = !input.checked;
}
+
+ // Bubble up change event.
+ $(input).trigger('change');
},
change: function(e){

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit 60dffb7

Please sign in to comment.