src/common/js/winjs/js/ui.js
function _Overlay_findSiblings(commands) {
                    // Now make sure they're all in this container
                    var siblings = [];
                    var allCommands = this.element.querySelectorAll(".win-command");
                    var countAll, countIn;
                    for (countAll = 0; countAll < allCommands.length; countAll++) {
                        var found = false;
                        for (countIn = 0; countIn < commands.length; countIn++) {
                            if (commands[countIn] === allCommands[countAll]) {
                                commands.splice(countIn, 1);
                                found = true;
                                break;
                            }
                        }
                        if (!found) {
                            siblings.push(allCommands[countAll]);
                        }
                    }
                    return siblings;
                }
function _Overlay_findSiblings(commands) {
                    // Now make sure they're all in this container
                    var siblings = [];
                    var allCommands = this.element.querySelectorAll(".win-command");
                    var countAll, countIn;
                    for (countAll = 0; countAll < allCommands.length; countAll++) {
                        var found = false;
                        for (countIn = 0; countIn < commands.length; countIn++) {
                            if (commands[countIn] === allCommands[countAll]) {
                                commands.splice(countIn, 1);
                                found = true;
                                break;
                            }
                        }
                        if (!found) {
                            siblings.push(allCommands[countAll]);
                        }
                    }
                    return siblings;
                }
function _Overlay_findSiblings ( commands ) { // Now make sure they're all in this container var siblings = [ ] ; var allCommands = this . element . querySelectorAll ( ".win-command" ) ; var countAll , countIn ; for ( countAll = 0 ; countAll < allCommands . length ; countAll ++ ) { var found = false ; for ( countIn = 0 ; countIn < commands . length ; countIn ++ ) { if ( commands [ countIn ] === allCommands [ countAll ] ) { commands . splice ( countIn , 1 ) ; found = true ; break ; } } if ( ! found ) { siblings . push ( allCommands [ countAll ] ) ; } } return siblings ; }
Find siblings, all DOM elements now. Returns all .win-commands in this Overlay that are NOT in the passed in 'commands' array.
Find siblings all DOM elements now . Returns all . win - commands in this Overlay that are NOT in the passed in commands array .