0.4.1d 9-Feb-2021
Fixed: img observer on replaced spellData compendium-browser.js - replaceSpells(): Put image observer on correct replacementv0.3.1-spetzel2020
parent
991e116d68
commit
07d3d378f6
|
@ -18,6 +18,7 @@
|
|||
0.4.1b SpellBrowser -> CompendiumBrowser
|
||||
9-Feb-2021 0.4.1b Call loadAndFilterItems instead of loadItems; filter as we go, limited by numToPreload
|
||||
0.4.1c Needed to pass specific spellFilters, itemFilters etc.
|
||||
0.4.1d: Fixed img observer on replaced spellData
|
||||
*/
|
||||
|
||||
const CMPBrowser = {
|
||||
|
@ -815,7 +816,7 @@ class CompendiumBrowser extends Application {
|
|||
replacement.innerHTML = newSpellsHTML;
|
||||
items[0].parentNode.replaceChild(replacement, items[0]);
|
||||
//Lazy load images
|
||||
$(newSpellsHTML).find("img").each((i, img) => observer.observe(img));
|
||||
$(replacement).find("img").each((i, img) => observer.observe(img));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue