Reverse order in showMenuElement for readability.

This commit is contained in:
Bryce Johnson 2017-09-20 15:11:36 -04:00
parent 6dfab7f88b
commit 8349782f7f

View file

@ -541,12 +541,12 @@ class AwardsHandler {
* the menu being opened and closed. */
showMenuElement($emojiMenu) {
$emojiMenu.addClass(IS_RENDERED);
// enqueues animation as a microtask, so it begins ASAP once IS_RENDERED added
Promise.resolve().then(() => { // eslint-disable-line promise/catch-or-return
$emojiMenu.addClass(IS_VISIBLE);
});
$emojiMenu.addClass(IS_RENDERED);
}
hideMenuElement($emojiMenu) {