Przekazywanie instancji obiektu do callbackFn
This commit is contained in:
3
klasa.js
3
klasa.js
@@ -513,7 +513,6 @@ class IdmHotspot{
|
||||
this.handleHideSecondImage = this.handleHideSecondImage.bind(this);
|
||||
this.handleSelectVersion = this.handleSelectVersion.bind(this);
|
||||
this.handleSelectSize = this.handleSelectSize.bind(this);
|
||||
|
||||
this.init();
|
||||
}
|
||||
|
||||
@@ -1753,7 +1752,7 @@ class IdmHotspot{
|
||||
|
||||
console.log(`Initialized hotspot #${this.id}`);
|
||||
// funkcja wykonująca się po ramce rekomendacji
|
||||
if(typeof this.options?.callbackFn === "function") this.options?.callbackFn();
|
||||
if(typeof this.options?.callbackFn === "function") this.options?.callbackFn(this);
|
||||
}catch(err){
|
||||
console.error(idmHotspotTextObject["Wystąpił błąd z inicjalizacją. Proszę odśwież stronę"], err);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user