maxogden/conversationThreading-js — pull request #1 by tilgovi (2012-05-29 19:40:26+00:00)
Title: more robust handling of references and fixes for messageContainer.hasDescendant and messageContainer.getSpecificChild

message.references is sometimes just a string (like '') rather than an array of ancestor ids. It's best to tolerate this case and tolerate undefined while we're at it.

Also, hasDescendant and getSpecificChild had small errors that made them incorrect.

After these fixes the test suite runs quietly again. I added tests for the messageContainer fixes.