MCPcopy Index your code
hub / github.com/dataarts/dat.gui / testChange

Function testChange

tests/jquery.js:3330–3354  ·  view source on GitHub ↗
( e )

Source from the content-addressed store, hash-verified

3328 },
3329
3330 testChange = function testChange( e ) {
3331 var elem = e.target, data, val;
3332
3333 if ( !rformElems.test( elem.nodeName ) || elem.readOnly ) {
3334 return;
3335 }
3336
3337 data = jQuery._data( elem, "_change_data" );
3338 val = getVal(elem);
3339
3340 // the current data will be also retrieved by beforeactivate
3341 if ( e.type !== "focusout" || elem.type !== "radio" ) {
3342 jQuery._data( elem, "_change_data", val );
3343 }
3344
3345 if ( data === undefined || val === data ) {
3346 return;
3347 }
3348
3349 if ( data != null || val ) {
3350 e.type = "change";
3351 e.liveFired = undefined;
3352 jQuery.event.trigger( e, arguments[1], elem );
3353 }
3354 };
3355
3356 jQuery.event.special.change = {
3357 filters: {

Callers

nothing calls this directly

Calls 1

getValFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…