2016-05-07 11:49:46 -07:00
|
|
|
define(['./_Hash', './_ListCache', './_Map'], function(Hash, ListCache, Map) {
|
2015-12-16 17:53:20 -08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Removes all key-value entries from the map.
|
|
|
|
|
*
|
|
|
|
|
* @private
|
|
|
|
|
* @name clear
|
|
|
|
|
* @memberOf MapCache
|
|
|
|
|
*/
|
2016-05-07 11:49:46 -07:00
|
|
|
function mapCacheClear() {
|
2016-09-17 22:24:52 -07:00
|
|
|
this.size = 0;
|
2016-02-15 20:20:54 -08:00
|
|
|
this.__data__ = {
|
|
|
|
|
'hash': new Hash,
|
2016-05-07 11:49:46 -07:00
|
|
|
'map': new (Map || ListCache),
|
2016-02-15 20:20:54 -08:00
|
|
|
'string': new Hash
|
|
|
|
|
};
|
2015-12-16 17:53:20 -08:00
|
|
|
}
|
|
|
|
|
|
2016-05-07 11:49:46 -07:00
|
|
|
return mapCacheClear;
|
2015-12-16 17:53:20 -08:00
|
|
|
});
|