Use addCallbackAndRunD instead off addCallbackAndRun

This commit is contained in:
pietervdvn 2021-06-30 15:41:21 +02:00
parent 6576ac36cc
commit b5cc8d8194
2 changed files with 2 additions and 2 deletions

View file

@ -66,7 +66,7 @@ export class ImageSearcher extends UIEventSource<{ key: string, url: string }[]>
});
if (loadSpecial) {
tags.addCallbackAndRun(tags => {
tags.addCallbackAndRunD(tags => {
const wdItem = tags.wikidata;
if (wdItem !== undefined) {

View file

@ -61,7 +61,7 @@ export default class TitleHandler {
constructor(layoutToUse: UIEventSource<LayoutConfig>,
selectedFeature: UIEventSource<any>,
allElementsStorage: ElementStorage) {
new TitleElement(layoutToUse, selectedFeature, allElementsStorage).addCallbackAndRun(title => {
new TitleElement(layoutToUse, selectedFeature, allElementsStorage).addCallbackAndRunD(title => {
document.title = title
})
}