mirror of
https://github.com/discourse/discourse.git
synced 2025-02-27 06:44:27 +08:00

This started as a way to prevent "previewUpdated" from doing the same work twice when morphing. Ended up refactoring "previewUpdated" and extracted into 5 distinct methods for clearer understanding and more consistent debouncing (using the "@debounce" decorator instead of the "discourseDebounce" method). No "feature" was changed, other than not doing the "decorateCookedElement" when morphing is enabled, since we already did it _before_ morphing.