src/aria/utils/StackHashMap.js
function (map, array) {
                if (map == null)
                    return;
                for (var i in map) {
                    var item = map[i];
                    var key = item.key;
                    if (map == this._objectKeys) {
                        key[this._metaDataName] = null;
                        delete item.key[this._metaDataName];
                    }
                    while (item) {
                        array.push(item.value);
                        item.value = null;
                        item.key = null;
                        var next = item.next;
                        item.next = null;
                        item = next;
                    }
                    map[i] = null;
                    delete map[i];
                }
            }
function (map, array) {
                if (map == null)
                    return;
                for (var i in map) {
                    var item = map[i];
                    var key = item.key;
                    if (map == this._objectKeys) {
                        key[this._metaDataName] = null;
                        delete item.key[this._metaDataName];
                    }
                    while (item) {
                        array.push(item.value);
                        item.value = null;
                        item.key = null;
                        var next = item.next;
                        item.next = null;
                        item = next;
                    }
                    map[i] = null;
                    delete map[i];
                }
            }
function ( map , array ) { if ( map == null ) return ; for ( var i in map ) { var item = map [ i ] ; var key = item . key ; if ( map == this . _objectKeys ) { key [ this . _metaDataName ] = null ; delete item . key [ this . _metaDataName ] ; } while ( item ) { array . push ( item . value ) ; item . value = null ; item . key = null ; var next = item . next ; item . next = null ; item = next ; } map [ i ] = null ; delete map [ i ] ; } }
Remove all the entries of the given map and put the corresponding values in the given array.
@private
@param {Object} map of entries to be emptied
@param {Array} array which will receive the values
Remove all the entries of the given map and put the corresponding values in the given array .