comparison psgxs.js @ 10:44889cfb2f8c

Fix getItem method.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Fri, 27 Aug 2010 01:02:56 +0200
parents a6429f48e403
children 0ed3c06c5191
comparison
equal deleted inserted replaced
9:a6429f48e403 10:44889cfb2f8c
316 316
317 for (var i=0; i<item.length; i++) { 317 for (var i=0; i<item.length; i++) {
318 var j = storage.getItem(nodeID, item[i]); 318 var j = storage.getItem(nodeID, item[i]);
319 if (typeof j == 'number') 319 if (typeof j == 'number')
320 return makeError(response, j); 320 return makeError(response, j);
321 if (j == errors.success)
322 continue;
321 323
322 var k = xmpp.stanza('item', {id: item[i]}) 324 var k = xmpp.stanza('item', {id: item[i]})
323 k.cnode(j); 325 k.cnode(j);
324 s.cnode(k); 326 s.cnode(k);
325 } 327 }