forked from MapComplete/MapComplete
Use addCallbackAndRunD instead off addCallbackAndRun
This commit is contained in:
parent
6576ac36cc
commit
b5cc8d8194
2 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
|
@ -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
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue