Merge pull request #11620 from Snuffleupagus/RefSetCache-forEach-rm-thisArg
Remove the unused `thisArg` from `RefSetCache.forEach`
This commit is contained in:
commit
7f1e15e088
@ -251,9 +251,9 @@ var RefSetCache = (function RefSetCacheClosure() {
|
||||
this.dict[ref.toString()] = this.get(aliasRef);
|
||||
},
|
||||
|
||||
forEach: function RefSetCache_forEach(fn, thisArg) {
|
||||
for (var i in this.dict) {
|
||||
fn.call(thisArg, this.dict[i]);
|
||||
forEach: function RefSetCache_forEach(callback) {
|
||||
for (const i in this.dict) {
|
||||
callback(this.dict[i]);
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user