Skip to content

Set option on calender instance #74

@erikverheij

Description

@erikverheij

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions