| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -565,7 +565,7 @@ clickCard(e) { | |||
| 565 | 565 | const cardId = e.target.dataset.id | |
| 566 | 566 | } | |
| 567 | 567 | ||
| 568 | - const productCard = new ProductCardComponent(this.page) | ||
| 568 | + const productCard = new ProductCardComponent(this.pageRoot) | ||
| 569 | 569 | productCard.render(item, this.clickCard.bind(this)) | |
| 570 | 570 | ``` | |
| 571 | 571 | ||
@@ -758,7 +758,7 @@ render() { | |||
| 758 | 758 | backButton.render(this.clickBack.bind(this)) | |
| 759 | 759 | ||
| 760 | 760 | const data = this.getData() | |
| 761 | - const stock = new StockComponent(this.pageRoot) | ||
| 761 | + const stock = new ProductComponent(this.pageRoot) | ||
| 762 | 762 | stock.render(data) | |
| 763 | 763 | } | |
| 764 | 764 | ``` | |
| Back | FazBrowse Home | New Git URL |
0 commit comments