Skip to content

Commit

Permalink
Merge pull request #135 from davidaam/master
Browse files Browse the repository at this point in the history
Fix bug that didn't allow showing datepicker twice
  • Loading branch information
VitaliiBlagodir committed Oct 31, 2015
2 parents e37f2b8 + 473f1bd commit c13cae7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/android/DatePicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ DatePicker.prototype.ANDROID_THEMES = {
*/
DatePicker.prototype.show = function(options, cb, errCb) {

if (options.date) {
if (options.date && options.date instanceof Date) {
options.date = (options.date.getMonth() + 1) + "/" +
(options.date.getDate()) + "/" +
(options.date.getFullYear()) + "/" +
Expand Down

0 comments on commit c13cae7

Please sign in to comment.