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

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