summaryrefslogtreecommitdiffstats
path: root/dist/jquery-ui-timepicker-addon.js
diff options
context:
space:
mode:
authorBrian Rowe <admin@brian-rowe.com>2014-08-21 11:26:10 -0400
committerBrian Rowe <admin@brian-rowe.com>2014-08-21 11:26:10 -0400
commit88f24348a0828cf187c250dce4794e3db8b89e95 (patch)
treed9ebb7ce93045f0b7394a0aecd47fceac008db5c /dist/jquery-ui-timepicker-addon.js
parent4996a225d27ad7e14c707d6472751e84bf2eeeb9 (diff)
downloadjQuery-Timepicker-Addon-88f24348a0828cf187c250dce4794e3db8b89e95.zip
jQuery-Timepicker-Addon-88f24348a0828cf187c250dce4794e3db8b89e95.tar.gz
jQuery-Timepicker-Addon-88f24348a0828cf187c250dce4794e3db8b89e95.tar.bz2
Fixes #639 - MinDate Limits Minutes/Seconds...
Check for existence of properties when determining which value to use instead of just truthiness to avoid o.min evaulating to false when its value is 0
Diffstat (limited to 'dist/jquery-ui-timepicker-addon.js')
-rw-r--r--dist/jquery-ui-timepicker-addon.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/dist/jquery-ui-timepicker-addon.js b/dist/jquery-ui-timepicker-addon.js
index 16ced27..381e43d 100644
--- a/dist/jquery-ui-timepicker-addon.js
+++ b/dist/jquery-ui-timepicker-addon.js
@@ -1065,7 +1065,10 @@
o[opts] = val;
}
else { o = opts; }
- return tp_inst.control.create(tp_inst, obj, $t.data('unit'), $t.val(), o.min || $t.data('min'), o.max || $t.data('max'), o.step || $t.data('step'));
+ /*
+ * Check for existence of properties when determining which value to use instead of just truthiness to avoid o.min evaulating to false when its value is 0
+ */
+ return tp_inst.control.create(tp_inst, obj, $t.data('unit'), $t.val(), ('min' in o) ? o.min : $t.data('min'), ('max' in o) ? o.max : $t.data('max'), ('step' in o) ? o.step : $t.data('step'));
},
value: function (tp_inst, obj, unit, val) {
var $t = obj.children('select');