affansaied / dyndatetime

Automatically exported from code.google.com/p/dyndatetime
0 stars 0 forks source link

Uncaught illegal access error in google chrome and chromium #25

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Open calendar
2. Click "next month" several times
3. You will see empty rectangle and error in debug console

Bug reproduced in windows and linux using version 0.2 of dynDateTime.

This error in 1304 line of uncompressed code.
This line date.setDate(-day1);
If day1 equals 0 (zero), this code

Next code fixes problem: 

if( day1 != 0 ) {
    day1 = -1*day1;
}
date.setDate(day1);

Original issue reported on code.google.com by akademic...@gmail.com on 3 Jun 2010 at 8:53

GoogleCodeExporter commented 8 years ago
This fix works for me (Google Chrome, Linux).
Thank You. 

Original comment by a.e.gory...@gmail.com on 15 Jul 2010 at 2:33

GoogleCodeExporter commented 8 years ago
Thanks Ton
It working.

Original comment by anil.mca...@gmail.com on 20 Jul 2010 at 12:12