packages/plugins/media-queries/dist/index.js
function fireViewportChangeEvent(viewport, eventRegistry, namespace) {
    var components = getComponentsInEventRegistry(eventRegistry, namespace);
    var handlerResults = [];
    components.forEach(function (component) {
        Object.keys(eventRegistry[component._componentName]).forEach(function (selector) {
            if (selector === "" || viewport === selector) {
                eventRegistry[component._componentName][selector].forEach(function (handlerOption) {
                    handlerResults.push(component[handlerOption.handlerName].call(component, { viewport: viewport }));
                });
            }
        });
    });
    handlerResults.forEach(function (handlerResults) { return function () {
        if (typeof handlerResults === "function") {
            handlerResults();
        }
    }; });
}
function fireViewportChangeEvent(viewport, eventRegistry, namespace) {
    var components = getComponentsInEventRegistry(eventRegistry, namespace);
    var handlerResults = [];
    components.forEach(function (component) {
        Object.keys(eventRegistry[component._componentName]).forEach(function (selector) {
            if (selector === "" || viewport === selector) {
                eventRegistry[component._componentName][selector].forEach(function (handlerOption) {
                    handlerResults.push(component[handlerOption.handlerName].call(component, { viewport: viewport }));
                });
            }
        });
    });
    handlerResults.forEach(function (handlerResults) { return function () {
        if (typeof handlerResults === "function") {
            handlerResults();
        }
    }; });
}
function fireViewportChangeEvent ( viewport , eventRegistry , namespace ) { var components = getComponentsInEventRegistry ( eventRegistry , namespace ) ; var handlerResults = [ ] ; components . forEach ( function ( component ) { Object . keys ( eventRegistry [ component . _componentName ] ) . forEach ( function ( selector ) { if ( selector === "" || viewport === selector ) { eventRegistry [ component . _componentName ] [ selector ] . forEach ( function ( handlerOption ) { handlerResults . push ( component [ handlerOption . handlerName ] . call ( component , { viewport : viewport } ) ) ; } ) ; } } ) ; } ) ; handlerResults . forEach ( function ( handlerResults ) { return function ( ) { if ( typeof handlerResults === "function" ) { handlerResults ( ) ; } } ; } ) ; }
This function fire's a custom gondel event to all registered components
This function fire s a custom gondel event to all registered components