mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Merge pull request #11620 from Snuffleupagus/RefSetCache-forEach-rm-thisArg
Remove the unused `thisArg` from `RefSetCache.forEach`
This commit is contained in:
commit
7f1e15e088
1 changed files with 3 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue