src/common/js/winjs/js/ui.js
function _getChildSettingsControl(parentElement, id) {
                var settingElements = parentElement.querySelectorAll("." + _Constants.settingsFlyoutClass);
                var retValue,
                    control;
                for (var i = 0; i < settingElements.length; i++) {
                    control = settingElements[i].winControl;
                    if (control) {
                        if (control.settingsCommandId === id) {
                            retValue = control;
                            break;
                        }
                        if (settingElements[i].id === id) {
                            retValue = retValue || control;
                        }
                    }
                }

                return retValue;
            }
function _getChildSettingsControl(parentElement, id) {
                var settingElements = parentElement.querySelectorAll("." + _Constants.settingsFlyoutClass);
                var retValue,
                    control;
                for (var i = 0; i < settingElements.length; i++) {
                    control = settingElements[i].winControl;
                    if (control) {
                        if (control.settingsCommandId === id) {
                            retValue = control;
                            break;
                        }
                        if (settingElements[i].id === id) {
                            retValue = retValue || control;
                        }
                    }
                }

                return retValue;
            }
function _getChildSettingsControl ( parentElement , id ) { var settingElements = parentElement . querySelectorAll ( "." + _Constants . settingsFlyoutClass ) ; var retValue , control ; for ( var i = 0 ; i < settingElements . length ; i ++ ) { control = settingElements [ i ] . winControl ; if ( control ) { if ( control . settingsCommandId === id ) { retValue = control ; break ; } if ( settingElements [ i ] . id === id ) { retValue = retValue || control ; } } } return retValue ; }
Get the settings control by matching the settingsCommandId if no match we'll try to match element id
Get the settings control by matching the settingsCommandId if no match we ll try to match element id