jquery-src/jquery.calendars.picker.js
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]);
				}
			}
		}
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]);
				}
			}
		}
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 ] ) ; } } }
Perform a named action for a datepicker.
@memberof CalendarsPicker
@param elem {element} The control to affect.
@param action {string} The name of the action.
Perform a named action for a datepicker .