lib/address_space/address_space_add_event_type.js
// verify that all elements of data are valid
verify that all elements of data are valid
verify that all elements of data are valid
function verify_data_is_valid(){
            Object.keys(data).map(function(k) {
                if(k === "$eventDataSource") {
                    return;
                }
                if (!visitedProperties.hasOwnProperty(k)) {
                    throw new Error(" cannot find property '" + k + "' in [ "
                        + Object.keys(visitedProperties).join(", ") + "] when filling " +
                        eventTypeNode.browseName.toString() );
                }
            });
        }
function verify_data_is_valid ( ) { Object . keys ( data ) . map ( function ( k ) { if ( k === "$eventDataSource" ) { return ; } if ( ! visitedProperties . hasOwnProperty ( k ) ) { throw new Error ( " cannot find property '" + k + "' in [ " + Object . keys ( visitedProperties ) . join ( ", " ) + "] when filling " + eventTypeNode . browseName . toString ( ) ) ; } } ) ; }
verify that all elements of data are valid
verify that all elements of data are valid