diff options
author | Trent Richardson <trentdrichardson@gmail.com> | 2014-05-19 11:40:44 -0400 |
---|---|---|
committer | Trent Richardson <trentdrichardson@gmail.com> | 2014-05-19 11:40:44 -0400 |
commit | 1c8fcaa14528cb9b8c183275cb146b57900e81ce (patch) | |
tree | 998f1ad49d9133e4ac7d8010d6562aa3ec888721 /src | |
parent | 8daab6527e010d07cd953b95a77c13a59c45bf5e (diff) | |
download | jQuery-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.js | 2 |
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 () { |