correctly pass JSON object to receive function for Meteor

This commit is contained in:
Evan Prodromou 2009-07-13 03:15:39 -04:00
parent 55494720e5
commit 6ae7057b5c
1 changed files with 3 additions and 3 deletions

View File

@ -30,9 +30,9 @@ var MeteorUpdater = function()
}
}
function receive(message)
function receive(data)
{
id = message.data.id;
id = data.id;
// Don't add it if it already exists
//
@ -40,7 +40,7 @@ var MeteorUpdater = function()
return;
}
var noticeItem = makeNoticeItem(message.data);
var noticeItem = makeNoticeItem(data);
$("#notices_primary .notices").prepend(noticeItem, true);
$("#notices_primary .notice:first").css({display:"none"});
$("#notices_primary .notice:first").fadeIn(1000);