[Calendar] Fix an undeclared variable

The `paneDate` variable is not declared in `calendar.js`. Fix #1307.