mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 16:02:26 +01:00
Clean up some old-style iterator gunk.
This commit is contained in:
@@ -278,7 +278,7 @@ var Marks = Module("marks", {
|
||||
|
||||
_onPageLoad: function _onPageLoad(event) {
|
||||
let win = event.originalTarget.defaultView;
|
||||
for (let [i, mark] in Iterator(this._pendingJumps)) {
|
||||
for (let [i, mark] of this._pendingJumps.entries()) {
|
||||
if (win && win.location.href == mark.location) {
|
||||
this._scrollTo(mark);
|
||||
this._pendingJumps.splice(i, 1);
|
||||
|
||||
Reference in New Issue
Block a user