Skip to content

Commit

Permalink
A11y: optimie JS _this/el modxcms#16612
Browse files Browse the repository at this point in the history
  • Loading branch information
jenswittmann authored and opengeek committed Sep 23, 2024
1 parent 471f332 commit cfc0643
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions manager/assets/modext/core/modx.layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -475,11 +475,10 @@ Ext.extend(MODx.Layout, Ext.Viewport, {
}
}
});
var _this = this;
var openSubnav =
buttons[i].addEventListener('click', function(e) {
e.stopPropagation();
_this.focusRestoreEls.push(this.querySelectorAll('a')[0]);
el.focusRestoreEls.push(this.querySelectorAll('a')[0]);
el.showMenu(this);
});
}
Expand Down

0 comments on commit cfc0643

Please sign in to comment.