Mardak / profile

2 stars 7 forks source link

Refactor data passing between angular and Application #100

Open mzhilyaev opened 10 years ago

mzhilyaev commented 10 years ago

Specifically this chunk of messages could be rolled into one worker.port.emit("message", {content: {topic: "ranking_data", data: StudyApp.controller.getRankedInterests()}}); worker.port.emit("message", {content: {topic: "dispatch_batch", data: StudyApp.controller.getNextDispatchBatch()}}); worker.port.emit("message", {content: {topic: "host_interests_data", data: StudyApp.controller.getHostComputedInterests()}}); worker.port.emit("message", {content: {topic: "coverage_data", data: StudyApp.controller.getCoverage()}});