onbeforeremove
should tolerate thenables that synchronously resolve
#2592
Labels
Area: Core
For anything dealing with Mithril core itself
Type: Bug
For bugs and any other unexpected breakage
Mithril version: v2.0.4 (not new, though)
Browser and OS: All
Project:
Code
Steps to Reproduce
Expected Behavior
It to operate asynchronously
Current Behavior
It doesn't wait.
Context
We're not honoring the Promises/A+ spec here. And fixing this is as simple as changing these two lines to wrap their
this
value withPromise.resolve(...)
.The text was updated successfully, but these errors were encountered: