code: function(elem, action) {
  			var inst = this._getInst(elem);
  			if (!$.isEmptyObject(inst) && !this.isDisabled(elem)) {
  				var commands = inst.options.commands;
  				if (commands[action] && commands[action].enabled.apply(elem, [inst])) {
  					commands[action].action.apply(elem, [inst]);
  				}
  			}
  		}
docs: Perform a named action for a datepicker.
  @memberof CalendarsPicker
  @param elem {element} The control to affect.
  @param action {string} The name of the action.