Bug 463047 - Use js 1.7 iterators for properties bag and ical components -- regression fix; r=me
authorDaniel Boelzle [:dbo] <daniel.boelzle@sun.com>
Wed, 19 Nov 2008 06:46:31 +0100
changeset 1146 75dcf3c6be22eec85c049c8a7c9cb951f88c0b63
parent 1145 f78ce96ba4d68a0ee1462231a7a73b878227bf7b
child 1147 e5d97c6bdbce1788e61097f3e3d7fe5a40030d7b
push idunknown
push userunknown
push dateunknown
reviewersme
bugs463047
Bug 463047 - Use js 1.7 iterators for properties bag and ical components -- regression fix; r=me
calendar/base/modules/calItipUtils.jsm
--- a/calendar/base/modules/calItipUtils.jsm
+++ b/calendar/base/modules/calItipUtils.jsm
@@ -341,17 +341,17 @@ cal.itip = {
                 DUE: true,
                 RDATE: true,
                 RRULE: true,
                 EXDATE: true,
                 STATUS: true,
                 LOCATION: true
             };
 
-            for (let item in cal.itemIterator(aItem)) {
+            for (let item in cal.itemIterator([aItem])) {
                 for (let prop in cal.ical.propertyIterator(item.icalComponent)) {
                     if (prop.propertyName in majorProps) {
                         propStrings.push(item.recurrenceId + "#" + prop.icalString);
                     }
                 }
             }
             propStrings.sort();
             return propStrings.join("");