packages/plugins/resize/dist/index.js
function startResizeWatching(event) {
        var components = getComponentsInEventRegistry(eventRegistry, namespace);
        isRunning = true;
        // The resize listener is fired very often
        // for performance optimisations we search and store
        // all components during the initial start event
        componentInformation = components.map(function (component) {
            var size = component.__resizeSize || {
                width: 0,
                height: 0
            };
            var gondelComponentHandlers = eventRegistry[component._componentName];
            return {
                component: component,
                node: component._ctx,
                selectors: Object.keys(gondelComponentHandlers).map(function (selector) {
                    return gondelComponentHandlers[selector].map(function (handlerOption) { return component[handlerOption.handlerName]; });
                }),
                width: size.width,
                height: size.height
            };
        });
        fireResizeEvent(event);
    }
function startResizeWatching(event) {
        var components = getComponentsInEventRegistry(eventRegistry, namespace);
        isRunning = true;
        // The resize listener is fired very often
        // for performance optimisations we search and store
        // all components during the initial start event
        componentInformation = components.map(function (component) {
            var size = component.__resizeSize || {
                width: 0,
                height: 0
            };
            var gondelComponentHandlers = eventRegistry[component._componentName];
            return {
                component: component,
                node: component._ctx,
                selectors: Object.keys(gondelComponentHandlers).map(function (selector) {
                    return gondelComponentHandlers[selector].map(function (handlerOption) { return component[handlerOption.handlerName]; });
                }),
                width: size.width,
                height: size.height
            };
        });
        fireResizeEvent(event);
    }
function startResizeWatching ( event ) { var components = getComponentsInEventRegistry ( eventRegistry , namespace ) ; isRunning = true ; // The resize listener is fired very often // for performance optimisations we search and store // all components during the initial start event componentInformation = components . map ( function ( component ) { var size = component . __resizeSize || { width : 0 , height : 0 } ; var gondelComponentHandlers = eventRegistry [ component . _componentName ] ; return { component : component , node : component . _ctx , selectors : Object . keys ( gondelComponentHandlers ) . map ( function ( selector ) { return gondelComponentHandlers [ selector ] . map ( function ( handlerOption ) { return component [ handlerOption . handlerName ] ; } ) ; } ) , width : size . width , height : size . height } ; } ) ; fireResizeEvent ( event ) ; }
This handler is called if a new resize event happens.
A resize event is new if no resize occurred for 250ms
This handler is called if a new resize event happens . A resize event is new if no resize occurred for 250ms