Active.Mapper was being initialized twice, causing errors (#934)

This commit is contained in:
Devin Howard 2016-11-27 21:12:05 -05:00 committed by GitHub
parent 5d8ff3efce
commit 90c5bc26fc

View file

@ -77,8 +77,6 @@ const DataModel = {
if (serverData.Topics) self.Topics = new TopicCollection(serverData.Topics)
// initialize global backbone models and collections
if (Active.Mapper) Active.Mapper = new self.Mapper(Active.Mapper)
var myCollection = serverData.Mine ? serverData.Mine : []
var sharedCollection = serverData.Shared ? serverData.Shared : []
var starredCollection = serverData.Starred ? serverData.Starred : []