src/common/js/winjs/js/ui.js
function ListView_updateSelection() {
                    var indices = this._selection.getIndices(),
                        selectAll = this._selection.isEverything(),
                        selectionMap = {};

                    if (!selectAll) {
                        for (var i = 0, len = indices.length ; i < len; i++) {
                            var index = indices[i];
                            selectionMap[index] = true;
                        }
                    }

                    this._view.items.each(function (index, element, itemData) {
                        if (itemData.itemBox) {
                            var selected = selectAll || !!selectionMap[index];
                            _ItemEventsHandler._ItemEventsHandler.renderSelection(itemData.itemBox, element, selected, true);
                            if (itemData.container) {
                                _ElementUtilities[selected ? "addClass" : "removeClass"](itemData.container, _Constants._selectedClass);
                            }
                        }
                    });
                }
function ListView_updateSelection() {
                    var indices = this._selection.getIndices(),
                        selectAll = this._selection.isEverything(),
                        selectionMap = {};

                    if (!selectAll) {
                        for (var i = 0, len = indices.length ; i < len; i++) {
                            var index = indices[i];
                            selectionMap[index] = true;
                        }
                    }

                    this._view.items.each(function (index, element, itemData) {
                        if (itemData.itemBox) {
                            var selected = selectAll || !!selectionMap[index];
                            _ItemEventsHandler._ItemEventsHandler.renderSelection(itemData.itemBox, element, selected, true);
                            if (itemData.container) {
                                _ElementUtilities[selected ? "addClass" : "removeClass"](itemData.container, _Constants._selectedClass);
                            }
                        }
                    });
                }
function ListView_updateSelection ( ) { var indices = this . _selection . getIndices ( ) , selectAll = this . _selection . isEverything ( ) , selectionMap = { } ; if ( ! selectAll ) { for ( var i = 0 , len = indices . length ; i < len ; i ++ ) { var index = indices [ i ] ; selectionMap [ index ] = true ; } } this . _view . items . each ( function ( index , element , itemData ) { if ( itemData . itemBox ) { var selected = selectAll || ! ! selectionMap [ index ] ; _ItemEventsHandler . _ItemEventsHandler . renderSelection ( itemData . itemBox , element , selected , true ) ; if ( itemData . container ) { _ElementUtilities [ selected ? "addClass" : "removeClass" ] ( itemData . container , _Constants . _selectedClass ) ; } } } ) ; }
Methods used by SelectionManager
Methods used by SelectionManager