diff modules/mod_retrieve.js @ 54:c2c9c06d6e9d

Fix problems with unneeded text nodes.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Fri, 06 May 2011 17:51:15 +0200
parents 0d3f18bb1d36
children addbf6bbfaa8
line wrap: on
line diff
--- a/modules/mod_retrieve.js
+++ b/modules/mod_retrieve.js
@@ -100,8 +100,8 @@ exports.retrieveItems = {
 		}
 
 		var item = [];
-		for (var i=0; i<request.children.length; i++) {
-			var j = request.children[i];
+		for (var i=0; i<request.tags.length; i++) {
+			var j = request.tags[i];
 			if (j.name == 'item' && j.attr['id'] && j.attr['id'] != '')
 				item.push(j.attr['id']);
 		}