src/worker/ReactWWComponent.js
function extractEventHandlers(props) {
    let result = {
        eventHandlers: {},
        options: {}
    };
    for (let key in props) {
        if (ReactBrowserEventEmitter.registrationNameModules.hasOwnProperty(key)) {
            result.eventHandlers[key] = props[key];
        } else {
            result.options[key] = props[key];
        }
    }
    return result;
}
function extractEventHandlers(props) {
    let result = {
        eventHandlers: {},
        options: {}
    };
    for (let key in props) {
        if (ReactBrowserEventEmitter.registrationNameModules.hasOwnProperty(key)) {
            result.eventHandlers[key] = props[key];
        } else {
            result.options[key] = props[key];
        }
    }
    return result;
}
function extractEventHandlers ( props ) { let result = { eventHandlers : { } , options : { } } ; for ( let key in props ) { if ( ReactBrowserEventEmitter . registrationNameModules . hasOwnProperty ( key ) ) { result . eventHandlers [ key ] = props [ key ] ; } else { result . options [ key ] = props [ key ] ; } } return result ; }
Function to separate event Handlers and regular props
@param  {Object} props Props passed to a React Component
@return {eventHandlers: {}, options: {}}       An object containing eventHandlers and options
Function to separate event Handlers and regular props