modules/ui/field.js
// once we know that the field will be shown.
once we know that the field will be shown.
once we know that the field will be shown .
function createField() {
        field.impl = uiFields[field.type](field, context)
            .on('change', function(t, onInput) {
                dispatch.call('change', field, t, onInput);
            });
        if (entity) {
            field.entityID = entity.id;
            if (field.impl.entity) {
                field.impl.entity(entity);
            }
        }
    }
function createField ( ) { field . impl = uiFields [ field . type ] ( field , context ) . on ( 'change' , function ( t , onInput ) { dispatch . call ( 'change' , field , t , onInput ) ; } ) ; if ( entity ) { field . entityID = entity . id ; if ( field . impl . entity ) { field . impl . entity ( entity ) ; } } }
once we know that the field will be shown.
once we know that the field will be shown .
// if this field cares about the entity, pass it along