Implement new event marshalling system

This commit is contained in:
Trever Fischer
2012-11-21 21:41:11 -05:00
parent 8ef29f3358
commit 4ac2d61359
14 changed files with 511 additions and 189 deletions

View File

@@ -78,8 +78,8 @@ EventPoller.prototype._successfulPoll = function(data) {
var that = this;
$(data['events']).each(function(idx, evt) {
console.log(evt['event']['type']);
that.dispatchEvent(evt['event']);
console.log(evt['type']);
that.dispatchEvent(evt);
});
if (data['is-live']) {