mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 18:25:37 +02:00
Remove the unused thisArg
from RefSetCache.forEach
Given that this is completely unused, and that a "normal" function call may be a *tiny* bit more efficient, there's no good reason as far as I can tell to keep it.
This commit is contained in:
parent
e2b30e9e9c
commit
6b44ae2170
1 changed files with 3 additions and 3 deletions
|
@ -251,9 +251,9 @@ var RefSetCache = (function RefSetCacheClosure() {
|
||||||
this.dict[ref.toString()] = this.get(aliasRef);
|
this.dict[ref.toString()] = this.get(aliasRef);
|
||||||
},
|
},
|
||||||
|
|
||||||
forEach: function RefSetCache_forEach(fn, thisArg) {
|
forEach: function RefSetCache_forEach(callback) {
|
||||||
for (var i in this.dict) {
|
for (const i in this.dict) {
|
||||||
fn.call(thisArg, this.dict[i]);
|
callback(this.dict[i]);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue