mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 14:35:47 +01:00
fix: #8915, fix queue not being cleared after firing click events
if you clicked elements early then on every ajaxify.end the same elements were getting click events @julianlam
This commit is contained in:
@@ -60,6 +60,7 @@ app.cacheBuster = null;
|
|||||||
earlyQueue.forEach(function (el) {
|
earlyQueue.forEach(function (el) {
|
||||||
el.click();
|
el.click();
|
||||||
});
|
});
|
||||||
|
earlyQueue = [];
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
setTimeout(app.handleEarlyClicks, 50);
|
setTimeout(app.handleEarlyClicks, 50);
|
||||||
|
|||||||
Reference in New Issue
Block a user