Skip to content

task to lesson 6 - #14

Open
zagidulin wants to merge 2 commits into
masterfrom
JS_2_les_6
Open

task to lesson 6#14
zagidulin wants to merge 2 commits into
masterfrom
JS_2_les_6

Conversation

@zagidulin

Copy link
Copy Markdown
Owner

No description provided.

@Tardigrada777 Tardigrada777 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Хорошо. Проработайте мои комментарии.

Comment thread basket_script.js
}

render() {
this.#getShopCartList(this.shopCartList);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Не думаю, что получать товары каждый раз при рендере - это хорошая идея. Лучше вынести рендер отдельно от получения данных

Comment thread catalog_script.js

xhr.onreadystatechange = function () {
if (xhr.readyState === 4) {
if (xhr.status === 200) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Хорошо, эта проверка действительно тут нужна.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants