|
@@ -19,7 +19,7 @@ $(document).ready(function() {
|
|
|
this.pageCount = 15;
|
|
|
this.expandKey = 'filing-' + window.location.pathname.split('/')[2];
|
|
|
const cache = getLocalCache(this.expandKey);
|
|
|
- this.expandCache = cache ? cache.split(',') : [];
|
|
|
+ this.expandCache = cache ? _.uniq(cache.split(',')) : [];
|
|
|
this.curFilingKey = 'cur-filing-' + window.location.pathname.split('/')[2];
|
|
|
}
|
|
|
analysisFiling(data) {
|
|
@@ -288,8 +288,7 @@ $(document).ready(function() {
|
|
|
if (expand) {
|
|
|
this.expandCache.push(node.id);
|
|
|
} else{
|
|
|
- const index = this.expandCache.indexOf(node.id);
|
|
|
- if (index >= 0) this.expandCache.splice(index, 1);
|
|
|
+ this.expandCache = this.expandCache.filter(x => { return x !== node.id });
|
|
|
}
|
|
|
setLocalCache(this.expandKey, this.expandCache.join(','));
|
|
|
}
|