]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
correctly pass JSON object to receive function for Meteor
authorEvan Prodromou <evan@controlyourself.ca>
Mon, 13 Jul 2009 07:15:39 +0000 (03:15 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Mon, 13 Jul 2009 07:15:39 +0000 (03:15 -0400)
plugins/Meteor/meteorupdater.js

index f647ded3b5aa9614c87c59ffe20daff8b12c2848..60d2cc37238f84172d39157963f7204886bcc130 100644 (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);