The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

capouch (10) [Avatar] Offline
Hoping for better results on this question than my previous one, which sits unanswered many weeks later.

As I understand it, the spa-model.js module is complete in its final version as of Sec. 6.7.

In Sec. 6.3.4 the call in logout() to removePerson disappeared, and does not reappear in the remaining sections of the chapter, although the function remains in the model code.

Is this an oversight, is it going to be used again someday in a future chapter, or am I missing a call to it somewhere?
michael.mikowski (247) [Avatar] Offline
Re: Sec. 6.7: nobody calls removeUser()?
Sorry about the delay, but we all have "real jobs." One can't make a living off of just publishing technical books, unless one lives in Bangladesh smilie

There really isn't an oversight here. Although unused, 'removeUser' is retained in case we or others need it in the future. It isn't needed in the model because we clear the browser TaffyDB on logout anyway, and we fully regenerate the user list when an 'spa-listchange' event occurs. If, however, we wanted to incrementally update the user list in the future, the removePerson method would come in handy.