imports/vx/client/code/vxapp.js
/**
     * Remove a Gavel global object function.
     *
     * @param {string} functionId Function ID.
     */
Remove a Gavel global object function.
@param {string} functionId Function ID.
Remove a Gavel global object function . @param { string } functionId Function ID .
removeFunction(oldFunction) {
        try {
            const functionAnchor = VXApp.functionAnchor()
            if (!functionAnchor) {
                return
            }
            if (typeof oldFunction.name === "string") {
                console.log(`vxapp.js removeFunction will remove ${oldFunction.name} from ${functionAnchor} global object`)
                delete window[functionAnchor][oldFunction.name]
            }
        }
        catch (error) {
            OLog.error(`vxapp.js removeFunction unexpected error ${error}`)
        }
    }
removeFunction ( oldFunction ) { try { const functionAnchor = VXApp . functionAnchor ( ) if ( ! functionAnchor ) { return } if ( typeof oldFunction . name === "string" ) { console . log ( ` ${ oldFunction . name } ${ functionAnchor } ` ) delete window [ functionAnchor ] [ oldFunction . name ] } } catch ( error ) { OLog . error ( ` ${ error } ` ) } }
Remove a Gavel global object function.
Remove a Gavel global object function .