balderdashy/waterline — pull request #515 by clarkorz (2014-07-05 08:15:19+00:00)
Title: Fix populating more than 2 associations with criteria

If `Model.populate(keyName, criteria)` called N times, there might be N ~ 2N joins. If there is a criteria for each population, only the first join or the second join will use the criteria, and it will be override during the next call of `Model.populate()`, see lines between 256 ~ 261.