summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTrent Richardson <trentdrichardson@gmail.com>2014-05-19 11:40:44 -0400
committerTrent Richardson <trentdrichardson@gmail.com>2014-05-19 11:40:44 -0400
commit1c8fcaa14528cb9b8c183275cb146b57900e81ce (patch)
tree998f1ad49d9133e4ac7d8010d6562aa3ec888721 /src
parent8daab6527e010d07cd953b95a77c13a59c45bf5e (diff)
downloadjQuery-Timepicker-Addon-1c8fcaa14528cb9b8c183275cb146b57900e81ce.zip
jQuery-Timepicker-Addon-1c8fcaa14528cb9b8c183275cb146b57900e81ce.tar.gz
jQuery-Timepicker-Addon-1c8fcaa14528cb9b8c183275cb146b57900e81ce.tar.bz2
Fixes #434 allows a getter method for options
Diffstat (limited to 'src')
-rw-r--r--src/jquery-ui-timepicker-addon.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jquery-ui-timepicker-addon.js b/src/jquery-ui-timepicker-addon.js
index 29209c9..f57e162 100644
--- a/src/jquery-ui-timepicker-addon.js
+++ b/src/jquery-ui-timepicker-addon.js
@@ -1112,7 +1112,7 @@
var tmp_args = arguments;
if (typeof(o) === 'string') {
- if (o === 'getDate') {
+ if (o === 'getDate' || (o === 'option' && tmp_args.length === 2 && typeof (tmp_args[1]) === 'string')) {
return $.fn.datepicker.apply($(this[0]), tmp_args);
} else {
return this.each(function () {