I can confirm the same error occurs in IE 10.
My column definition (a work in progress) looks like this:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
{<br /> name: "Date",<br /> index: "Date",<br /> width: 72,<br /> formatter: 'date',<br /> formatoptions: {<br /> srcformat: 'm/d/Y',<br /> newformat: 'm/d/Y',<br /> defaultValue:null<br /> },<br /> editable: true,<br /> editrules: { required: true, date: true },<br /> editoptions: {<br /> size: 20,<br /> dataInit: function (el) { $(el).datepicker(); }<br /> }<br /> },<br /> |
I was able to work-around the bug by changing the function block at line 5980 like so:
|
|
daysArray = function(n) {<br /> var i, a = new Array(n);<br /> for (i = 1; i <= n; i++) {<br /> a<i> = 31;<br /> if (i==4 || i==6 || i==9 || i==11) {a</i><i> = 30;}<br /> if (i==2) {a</i><i> = 29;}<br /> }<br /> return a;<br /> };<br /> </i> |
On a related note, why pass 12 in? The number of months in a year isn't likely to change in our lifetime. 
in which case this function can be:
|
|
daysArray = function() {return new Array(0,31,29,31,30,31,30,31,31,30,31,30,31)} |