diff --git a/CHANGELOG.md b/CHANGELOG.md index ec74476f..1f2bd7b4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -49,6 +49,7 @@ Thanks to: @btoconnor, @bugsounet, @JasonStieber, @khassel, @kleinmantara and @W - [calendar] Added config option "showEndsOnlyWithDuration" for default calendar - [compliments] Added `specialDayUnique` config option, defaults to `false` (#3465) - [weather] Provider weathergov: Use `precipitationLast3Hours` if `precipitationLastHour` is `null` (#3124) +- [core] Added `DOM_OBJECTS_UPDATED` notification each time the DOM is re-rendered via `updateDom` (#3534) ### Removed diff --git a/js/main.js b/js/main.js index c3f783e1..fd70c564 100644 --- a/js/main.js +++ b/js/main.js @@ -666,7 +666,10 @@ const MM = (function () { } // Further implementation is done in the private method. - updateDom(module, updateOptions); + updateDom(module, updateOptions).then(function () { + // Once the update is complete and rendered, send a notification to the module that the DOM has been updated + sendNotification("DOM_OBJECTS_UPDATED", null, null, module); + }); }, /**