changeset 87:0f6f213f0a33

Makes the PubSub items method to return the stanza object.
author Sonny Piers <sonny.piers@gmail.com>
date Tue, 21 Feb 2012 19:27:17 +0100
parents 0c10c9a69c69
children 595be4a8584f
files plugins/pubsub.js
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/pubsub.js
+++ b/plugins/pubsub.js
@@ -87,9 +87,10 @@
               item.miniature = miniature.getAttribute('href');
             items.push(item);
           };
+          stanza.items = items;
 
           if (aResult)
-            aResult(items);
+            aResult(stanza);
         }, aError);
       },
       create: function(aTo, aNode, aFields, aResult, aError) {