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

Month/day has limited next() #35

Closed
ghost opened this issue Sep 14, 2013 · 1 comment
Closed

Month/day has limited next() #35

ghost opened this issue Sep 14, 2013 · 1 comment
Assignees
Labels
Milestone

Comments

@ghost
Copy link

ghost commented Sep 14, 2013

I can only call next() 15 times on the following configuration:

cal.init({
itemSelector: "#calvis",
domainMargin: 3,
domain: "month",
subDomain: "x_day",
legend: [1, 5, 10, 20],
displayLegend: false,

    range: 6,
    start: new Date(calStart, 0, 1),
    data: cal_data,

    nextSelector: "#cal-next",
    previousSelector: "#cal-prev"

})

I tried with other combinations and mostly they work, just month/day doesn't.

@ghost ghost assigned wa0x6e Sep 17, 2013
@wa0x6e
Copy link
Owner

wa0x6e commented Sep 17, 2013

What's the value of your calStart ? I just tested, and found that the bug occurred when calling next() on September 2001. next() seems to works correctly on all dates passed that month.

@wa0x6e wa0x6e closed this as completed in 6f80ed1 Sep 17, 2013
wa0x6e pushed a commit that referenced this issue Nov 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant