diff options
author | Felix Nagel <info@felixnagel.com> | 2015-04-11 00:04:33 +0200 |
---|---|---|
committer | Felix Nagel <info@felixnagel.com> | 2015-04-11 00:04:33 +0200 |
commit | a3df6dd8a8e363a276392acd7744f7db1e75eb61 (patch) | |
tree | 1ae195d2bb7389bb34ec7d0d616c94e40a244ff4 | |
parent | d9ee3a1ec4e03a46de86adf4db6ce8cd95d88247 (diff) | |
download | jquery-ui-a3df6dd8a8e363a276392acd7744f7db1e75eb61.tar.gz jquery-ui-a3df6dd8a8e363a276392acd7744f7db1e75eb61.zip |
Calendar: Add comment in _needsRefresh method
-rw-r--r-- | ui/calendar.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/calendar.js b/ui/calendar.js index 05d4c229b..40884c283 100644 --- a/ui/calendar.js +++ b/ui/calendar.js @@ -142,6 +142,9 @@ return $.widget( "ui.calendar", { _needsRefresh: function() { if ( this.date.month() !== this.viewDate.month() || this.date.year() !== this.viewDate.year() ) { + + // Check if the needed day is already present in our grid due + // to eachDay option changes (eg. other-months demo) return !this.grid.find( this._sanitizeSelector( "#" + this._getDayId( this.date ) ) ).length; |