metamaps--metamaps/frontend/src/Metamaps/Active.js

17 lines
508 B
JavaScript
Raw Normal View History

2016-10-02 13:41:05 +00:00
import DataModelMap from './DataModel/Map'
import DataModelMapper from './DataModel/Mapper'
import DataModelTopic from './DataModel/Topic'
const Active = {
Map: null,
2016-10-02 13:41:05 +00:00
Mapper: null,
Topic: null,
2016-10-02 13:41:05 +00:00
init: function(serverData) {
if (serverData.Map) Active.Map = new DataModelMap(severData.ActiveMap)
if (serverData.Mapper) Active.Mapper = new DataModelMapper(serverData.ActiveMapper)
if (serverData.Topic) Active.Topic = new DataModelTopic(serverData.ActiveTopic)
}
}
export default Active