Closed FrankBerlin closed 11 years ago
Adding your comment from the blog so they can both be addressed:
Also the function removeAt() from the ObserverList prototype is later (in the Subject code) called removeIndexAt().
Thanks for posting the issue!
in the indexOf function of ObserverList in the Observer Pattern chapter the value of i does not get changed inside the while loop. my guess is that at some point it should make an i++, or we create an infinite loop.
BR Frank