Skip to content

Commit

Permalink
Use changed vectornet interface.
Browse files Browse the repository at this point in the history
  • Loading branch information
cesium12 committed Aug 3, 2010
1 parent 83e1acb commit e53644a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion twitternet.py
Expand Up @@ -20,7 +20,7 @@ def log(obj, msg):
def make_send(sender, keys=True):
def _send(data):
log(sender, data.keys() if keys else data)
sender.sendMessage({ 'vector' : data, 'frame_number' : sender.frame_number })
sender.sendMessage(data)
return _send

class TwitterStream(ProducingNode):
Expand Down
2 changes: 1 addition & 1 deletion vectornet
Submodule vectornet updated from f26eb2 to 27ae21
2 changes: 1 addition & 1 deletion viewer/twittermap.js
Expand Up @@ -12,7 +12,7 @@ onload = function() {
stomp.onconnectedframe = function() { container.animate({ opacity: 0.3 }, "slow"); };
stomp.onmessageframe = function(frame) {
if(frame.body.toString().substring(1, 8) !== "MESSAGE")
viewer.handleMessage(jQuery.parseJSON(frame.body.toString()).data.vector);
viewer.handleMessage(jQuery.parseJSON(frame.body.toString()));
};
stomp.connect.apply(stomp, stompargs);
};
Expand Down

0 comments on commit e53644a

Please sign in to comment.