Доработки по коду

This commit is contained in:
Valentin Silytuin 2024-03-26 14:19:13 +04:00
parent 7495ba6122
commit f0e0a7b0c1
1 changed files with 4 additions and 4 deletions

View File

@ -133,9 +133,9 @@ const init = async (items = [], options = {}, index = 0) => {
}, },
set init(val) { set init(val) {
this.state = val; this.state = val;
this.callback.forEach((i) => { for (const i of this.callback) {
i(val); i(val);
}); }
}, },
callback: [], callback: [],
addListener(callback) { addListener(callback) {
@ -159,8 +159,8 @@ const init = async (items = [], options = {}, index = 0) => {
<div class="advdominion-lg__wrapper swiper-wrapper"> <div class="advdominion-lg__wrapper swiper-wrapper">
${items.join('')} ${items.join('')}
</div> </div>
${options.pagination ? options.pagination : ''} ${options.pagination || ''}
${options.navigation ? options.navigation : ''} ${options.navigation || ''}
</div> </div>
</div> </div>
` `