code: function (el) {
              var date = el.data('date') || 1,
                  month = el.data('month') || 0,
                  year = el.data('year') || this.d.parsedDate.year,
                  dp = this.d;
              // Change view if min view does not reach yet
              if (dp.view != this.opts.minView) {
                  dp.down(new Date(year, month, date));
                  return;
              }
              // Select date if min view is reached
              var selectedDate = new Date(year, month, date),
                  alreadySelected = this.d._isSelected(selectedDate, this.d.cellType);
  
              if (!alreadySelected) {
                  dp._trigger('clickCell', selectedDate);
                  return;
              }
  
              dp._handleAlreadySelectedDates.bind(dp, alreadySelected, selectedDate)();
  
          }
docs: Events -------------------------------------------------