[go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new ICAL.Component(ICAL.parse(someICalData)) versus new ICAL.Component(ICAL.parse(someICalData)[1]) #423

Open
dilyanpalauzov opened this issue Mar 9, 2020 · 0 comments

Comments

@dilyanpalauzov
Copy link
Contributor

https://github.com/mozilla-comm/ical.js/wiki/Parsing-basic-iCalendar gives this example:

var jCalData = ICAL.parse(someICalData);
var comp = new ICAL.Component(jCalData[1]);

But it does not work on my system. On the otherside test/acceptance/utc_negative_zero_test.js contains:

    var result = ICAL.parse(icsData);
    var component = new ICAL.Component(result);

and this does work. So the wiki shall be updated to state ICAL.Component(jCalData) without [1].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants