Convert function to arrow function to fix context

Bug: T364783
Change-Id: I02100e193554fa359b7be2c52d1ee67f63734a2d
(cherry picked from commit 2615070b42)
This commit is contained in:
Ed Sanders 2024-05-13 22:31:00 +01:00 committed by Jforrester
parent 32925bc8a2
commit c2d74f291b

View file

@ -155,7 +155,7 @@ ve.init.mw.MobileArticleTarget.prototype.onContainerScroll = function () {
// getBoundingClientRect returns incorrect values during scrolling, so make sure to calculate
// it only after the scrolling ends (https://openradar.appspot.com/radar?id=6668472289329152).
var animateToolbarIntoView;
this.onContainerScrollTimer = setTimeout( animateToolbarIntoView = function () {
this.onContainerScrollTimer = setTimeout( animateToolbarIntoView = () => {
if ( this.toolbarAnimating ) {
// We can't do this while the 'transform' transition is happening, because
// getBoundingClientRect() returns values that reflect that (and are negative).