Skip to content

Commit

Permalink
HAR-146: Правки в добавление уведомлений
Browse files Browse the repository at this point in the history
  • Loading branch information
glebkos committed May 27, 2024
1 parent 8cc2616 commit c322722
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/features/listBlock/ui/listBlock.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ export class ListBlockView extends View {
}

addRender(objects, RenderEntity, ...args) {
this.root.innerHTML += listBlockTemplate({objects});
const prefix = '#list-item-';
for (let i = this.id; i < this.id + objects.length; ++i) {
const root = document.querySelector(prefix + i);
console.log(root);

const entity = new RenderEntity(root);
entity.render(objects[i], ...args);
Expand Down

0 comments on commit c322722

Please sign in to comment.