Answer by htor for Is circular referencing required in this situation?
I think you are making your data structure more complicated than it needs to be by adhering to a class based approach in the spirit of doing things object oriented.A more logical way would be using an...
View ArticleAnswer by Ewan for Is circular referencing required in this situation?
Although you seem to have changed your mind there is a solution to this problem and its 'events'we have to be a bit careful in javascript because 'events' and 'event handling' in javascript normally...
View ArticleIs circular referencing required in this situation?
class ItemList { constructor() { this.list = [];//list holds many instances of Item Class } removeItem(id) { //...search for item in this.list, remove it }}class Item { constructor(parent) { this.id =...
View Article
More Pages to Explore .....