James Ross <[EMAIL PROTECTED]> wrote:
> gavr wrote:
>> IDL :
>>    void getCalendars(out PRUint32 count,
>>                       [array, size_is(count), retval] out
>> calICalendar aCalendars);
>>
>> Component's JS:
>>     getCalendars: function(cnt) {
>>      return this.calManager.getCalendars({});
>>   },
>
> I believe you need to pass the length via the count parameter as well:
>
>   getCalendars: function(count) {
>     var rv = this.calManager.getCalendars({});
>     count.value = rv.length;
>     return rv;
>   }

Or simply

   getCalendars: function(count) {
     return this.calManager.getCalendars(count);
   }

Igor Tandetnik 


_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to