complete-javascript-course icon indicating copy to clipboard operation
complete-javascript-course copied to clipboard

294 Implementing Bookmarks - Part 2 at 13:40 - inheritance once again.

Open hazartilirot opened this issue 4 years ago • 2 comments

  1. I don't know why Jonas started changing arguments in render() method? We're working with two classes that should change a view state in a page -> the method that responsible for that is updateTemplatethat should call re-renderTemplate
  2. It would be easier to pass in A LIST with OBJECTS to updateTemplate(expectRecipesList)

In my case I override updateTemplate in each class since in one class we just need to go over attributes in another - text + some attributes I don't think that initiate two loops each time we need to change (just attributes) is a good idea - the behaviour is slightly different.

To my mind my code is easier to perceive. 4classes

hazartilirot avatar Dec 14 '20 13:12 hazartilirot

@hazartilirot I can solve it for you, but I have some question

SundusAdwan avatar Dec 30 '20 06:12 SundusAdwan

Well, it's kind of you. Thanks! However I dealt with issues on my own.

hazartilirot avatar Jan 07 '21 22:01 hazartilirot