feat: update virtuallist

This commit is contained in:
tanjinzhou 2020-09-27 16:05:53 +08:00
parent 0d34f45895
commit ab80874fa5
3 changed files with 23 additions and 1 deletions

@ -1 +1 @@
Subproject commit 83ab203d1ab9861132f6efd1e74015507c0e45f6
Subproject commit 955716e4e9533bc628c651d6ba6c8d1eb9b21a9d

View File

@ -0,0 +1,19 @@
// Firefox has low performance of map.
class CacheMap {
maps;
constructor() {
this.maps = {};
this.maps.prototype = null;
}
set(key, value) {
this.maps[key] = value;
}
get(key) {
return this.maps[key];
}
}
export default CacheMap;

View File

@ -0,0 +1,3 @@
const isFF = typeof navigator === 'object' && /Firefox/i.test(navigator.userAgent);
export default isFF;