src/common/js/winjs/js/ui.js
function SettingsFlyout_addFirstDiv() {
                    var _elms = this._element.getElementsByTagName("*");
                    var _minTab = 0;
                    for (var i = 0; i < _elms.length; i++) {
                        if ((0 < _elms[i].tabIndex) && (_minTab === 0 || _elms[i].tabIndex < _minTab)) {
                            _minTab = _elms[i].tabIndex;
                        }
                    }
                    var firstDiv = _Global.document.createElement("div");
                    firstDiv.className = _Constants.firstDivClass;
                    firstDiv.style.display = "inline";
                    firstDiv.setAttribute("role", "menuitem");
                    firstDiv.setAttribute("aria-hidden", "true");
                    firstDiv.tabIndex = _minTab;
                    _ElementUtilities._addEventListener(firstDiv, "focusin", this._focusOnLastFocusableElementFromParent, false);

                    // add to beginning
                    if (this._element.children[0]) {
                        this._element.insertBefore(firstDiv, this._element.children[0]);
                    } else {
                        this._element.appendChild(firstDiv);
                    }
                }
function SettingsFlyout_addFirstDiv() {
                    var _elms = this._element.getElementsByTagName("*");
                    var _minTab = 0;
                    for (var i = 0; i < _elms.length; i++) {
                        if ((0 < _elms[i].tabIndex) && (_minTab === 0 || _elms[i].tabIndex < _minTab)) {
                            _minTab = _elms[i].tabIndex;
                        }
                    }
                    var firstDiv = _Global.document.createElement("div");
                    firstDiv.className = _Constants.firstDivClass;
                    firstDiv.style.display = "inline";
                    firstDiv.setAttribute("role", "menuitem");
                    firstDiv.setAttribute("aria-hidden", "true");
                    firstDiv.tabIndex = _minTab;
                    _ElementUtilities._addEventListener(firstDiv, "focusin", this._focusOnLastFocusableElementFromParent, false);

                    // add to beginning
                    if (this._element.children[0]) {
                        this._element.insertBefore(firstDiv, this._element.children[0]);
                    } else {
                        this._element.appendChild(firstDiv);
                    }
                }
function SettingsFlyout_addFirstDiv ( ) { var _elms = this . _element . getElementsByTagName ( "*" ) ; var _minTab = 0 ; for ( var i = 0 ; i < _elms . length ; i ++ ) { if ( ( 0 < _elms [ i ] . tabIndex ) && ( _minTab === 0 || _elms [ i ] . tabIndex < _minTab ) ) { _minTab = _elms [ i ] . tabIndex ; } } var firstDiv = _Global . document . createElement ( "div" ) ; firstDiv . className = _Constants . firstDivClass ; firstDiv . style . display = "inline" ; firstDiv . setAttribute ( "role" , "menuitem" ) ; firstDiv . setAttribute ( "aria-hidden" , "true" ) ; firstDiv . tabIndex = _minTab ; _ElementUtilities . _addEventListener ( firstDiv , "focusin" , this . _focusOnLastFocusableElementFromParent , false ) ; // add to beginning if ( this . _element . children [ 0 ] ) { this . _element . insertBefore ( firstDiv , this . _element . children [ 0 ] ) ; } else { this . _element . appendChild ( firstDiv ) ; } }
Create and add a new first div to the beginning of the list
Create and add a new first div to the beginning of the list