mugifly / jquery-simple-datetimepicker

Date & time picker for jQuery, It's simple & clean.
http://mugifly.github.com/jquery-simple-datetimepicker
Other
259 stars 181 forks source link

Google Closure Compiler error #103

Closed fergardi closed 10 years ago

fergardi commented 10 years ago

Hello!

I've found a trailing comma on line 107 that causes a crash in Assetic with Google Closure Compiler run:

  //some code
  pl: {
    days: ['N', 'Pn', 'Wt', 'Śr', 'Cz', 'Pt', 'So'],
    months: [ "Styczeń", "Luty", "Marzec", "Kwiecień", "Maj", "Czerwiec", "Lipiec", "Sierpień", "Wrzesień", "Październik", "Listopad", "Grudzień" ],
    sep: '-',
    format: 'YYYY-MM-DD hh:mm',
    prevMonth: 'Poprzedni miesiąc',
    nextMonth: 'Następny miesiąc',
    today: 'Dzisiaj'
    }, // <--- This comma breaks closure compiler IE8 compatibility!
};

After deleting it all goes OK.

Cheers!

mugifly commented 10 years ago

Thanks. Fixed now. I began to checking a code with using jshint.