MCPcopy Index your code
hub / github.com/JsAaron/jQuery / testChange

Function testChange

1.6.1/src/event.js:767–791  ·  view source on GitHub ↗
( e )

Source from the content-addressed store, hash-verified

765 },
766
767 testChange = function testChange( e ) {
768 var elem = e.target, data, val;
769
770 if ( !rformElems.test( elem.nodeName ) || elem.readOnly ) {
771 return;
772 }
773
774 data = jQuery._data( elem, "_change_data" );
775 val = getVal(elem);
776
777 // the current data will be also retrieved by beforeactivate
778 if ( e.type !== "focusout" || elem.type !== "radio" ) {
779 jQuery._data( elem, "_change_data", val );
780 }
781
782 if ( data === undefined || val === data ) {
783 return;
784 }
785
786 if ( data != null || val ) {
787 e.type = "change";
788 e.liveFired = undefined;
789 jQuery.event.trigger( e, arguments[1], elem );
790 }
791 };
792
793 jQuery.event.special.change = {
794 filters: {

Callers

nothing calls this directly

Calls 1

getValFunction · 0.85

Tested by

no test coverage detected