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
@ -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…
x
Reference in New Issue
Block a user