From: Evan Prodromou Date: Mon, 13 Jul 2009 07:15:39 +0000 (-0400) Subject: correctly pass JSON object to receive function for Meteor X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6ae7057b5ca9a8c2ef79d28b362508fc14a3145b;p=quix0rs-gnu-social.git correctly pass JSON object to receive function for Meteor --- diff --git a/plugins/Meteor/meteorupdater.js b/plugins/Meteor/meteorupdater.js index f647ded3b5..60d2cc3723 100644 --- a/plugins/Meteor/meteorupdater.js +++ b/plugins/Meteor/meteorupdater.js @@ -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);