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

Set option on calender instance #74

Closed
erikverheij opened this Issue Feb 20, 2013 · 1 comment

Comments

Projects
None yet
2 participants
@erikverheij
Copy link

erikverheij commented Feb 20, 2013

Hi,

Maybe I'm not using the method correct, but if I try to set an option on a calendar instance I get the following error: "Maximum call stack size exceeded"


$('input#test', activePage).mobiscroll().calendar();

var maxDate = new Date();
maxDate.setDate( maxDate.getDate() + 14 );
$("input#test").mobiscroll('option', 'maxDate', maxDate);


I'm using:

  1. Jquery + Jquery mobile.
  2. A combined download of Date Time & Calendar

Setting the maxDate does work when using .date() instead of .calendar().
It seems the error occurs on all options set after init.

This example doesn't work either on .calendar();
$("input#valid_until").mobiscroll('option', 'firstDay', 2);

@dioslaska

This comment has been minimized.

Copy link
Contributor

dioslaska commented Feb 23, 2013

Fixed in 2.4.4

@dioslaska dioslaska closed this Feb 23, 2013

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