src/common/js/winjs/js/ui.js
function _allOverlaysCallback(event, nameOfFunctionCall, stopImmediatePropagationWhenHandled) {
                var elements = _Global.document.querySelectorAll("." + _Constants.overlayClass);
                if (elements) {
                    var len = elements.length;
                    for (var i = 0; i < len; i++) {
                        var element = elements[i];
                        var overlay = element.winControl;
                        if (!overlay._disposed) {
                            if (overlay) {
                                var handled = overlay[nameOfFunctionCall](event);
                                if (stopImmediatePropagationWhenHandled && handled) {
                                    // The caller has indicated we should exit as soon as the event is handled.
                                    return handled;
                                }
                            }
                        }
                    }
                }
            }
function _allOverlaysCallback(event, nameOfFunctionCall, stopImmediatePropagationWhenHandled) {
                var elements = _Global.document.querySelectorAll("." + _Constants.overlayClass);
                if (elements) {
                    var len = elements.length;
                    for (var i = 0; i < len; i++) {
                        var element = elements[i];
                        var overlay = element.winControl;
                        if (!overlay._disposed) {
                            if (overlay) {
                                var handled = overlay[nameOfFunctionCall](event);
                                if (stopImmediatePropagationWhenHandled && handled) {
                                    // The caller has indicated we should exit as soon as the event is handled.
                                    return handled;
                                }
                            }
                        }
                    }
                }
            }
function _allOverlaysCallback ( event , nameOfFunctionCall , stopImmediatePropagationWhenHandled ) { var elements = _Global . document . querySelectorAll ( "." + _Constants . overlayClass ) ; if ( elements ) { var len = elements . length ; for ( var i = 0 ; i < len ; i ++ ) { var element = elements [ i ] ; var overlay = element . winControl ; if ( ! overlay . _disposed ) { if ( overlay ) { var handled = overlay [ nameOfFunctionCall ] ( event ) ; if ( stopImmediatePropagationWhenHandled && handled ) { // The caller has indicated we should exit as soon as the event is handled. return handled ; } } } } } }
Helper for Global Event listeners. Invokes the specified callback member function on each _Overlay in the DOM.
Helper for Global Event listeners . Invokes the specified callback member function on each _Overlay in the DOM .