imports/vx/client/code/ux.js
/**
     * Given a form, construct a MongoDB modifier object with $set and $unset
     * operators to update database fields mapped to components
     * in that form.
     *
     * @param {object} form Form object.
     * @returns {object} MongoDB modifier.
     */
Given a form, construct a MongoDB modifier object with $set and $unset
operators to update database fields mapped to components
in that form.

@param {object} form Form object.
@returns {object} MongoDB modifier.
Given a form construct a MongoDB modifier object with $set and $unset operators to update database fields mapped to components in that form . @param { object } form Form object . @returns { object } MongoDB modifier .
makeModifier(form) {
        let modifier = {}
        _.each(form.components, component => {
            if (component.props.updateHandler) {
                return
            }
            if (component.constructor.displayName === "VXImage") {
                return
            }
            UX.mutateModifier(component, modifier)
        })
        return modifier
    }
makeModifier ( form ) { let modifier = { } _ . each ( form . components , component => { if ( component . props . updateHandler ) { return } if ( component . constructor . displayName === "VXImage" ) { return } UX . mutateModifier ( component , modifier ) } ) return modifier }
Given a form, construct a MongoDB modifier object with $set and $unset
 operators to update database fields mapped to components
 in that form.
Given a form construct a MongoDB modifier object with $set and $unset operators to update database fields mapped to components in that form .
// If a custom update handle has been supplied, don't // set the value for this binding (update will happen later): // VXImage is handles specially because when changed, the control contains base64-encoded // image contents.  This must be uploaded to the cloud, converted to a URL, and that URL // must be saved in MongoDB.  This is complex enough such that the process is handled // elsewhere: