diff options
author | Richard D. Worth <rdworth@gmail.com> | 2010-05-04 23:11:06 -0400 |
---|---|---|
committer | Richard D. Worth <rdworth@gmail.com> | 2010-05-04 23:11:06 -0400 |
commit | 0ad5ac73822fdabef26e97e92e2aeee1372d8878 (patch) | |
tree | b8fe3f4fc39a2af8dc5f4d187f910919a750c135 /ui/jquery.ui.datepicker.js | |
parent | 37e8dd605da5d99600c02c9d8c6b9f727ab69912 (diff) | |
download | jquery-ui-0ad5ac73822fdabef26e97e92e2aeee1372d8878.tar.gz jquery-ui-0ad5ac73822fdabef26e97e92e2aeee1372d8878.zip |
Datepicker: avoid ambiguous + ++ in min file. Partial fix for #5576 - invalid increment operand
Diffstat (limited to 'ui/jquery.ui.datepicker.js')
-rw-r--r-- | ui/jquery.ui.datepicker.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/ui/jquery.ui.datepicker.js b/ui/jquery.ui.datepicker.js index e41ae62a3..429253742 100644 --- a/ui/jquery.ui.datepicker.js +++ b/ui/jquery.ui.datepicker.js @@ -153,8 +153,10 @@ $.extend(Datepicker.prototype, { } var nodeName = target.nodeName.toLowerCase(); var inline = (nodeName == 'div' || nodeName == 'span'); - if (!target.id) - target.id = 'dp' + (++this.uuid); + if (!target.id) { + this.uuid += 1; + target.id = 'dp' + this.uuid; + } var inst = this._newInst($(target), inline); inst.settings = $.extend({}, settings || {}, inlineSettings || {}); if (nodeName == 'input') { @@ -285,7 +287,8 @@ $.extend(Datepicker.prototype, { _dialogDatepicker: function(input, date, onSelect, settings, pos) { var inst = this._dialogInst; // internal instance if (!inst) { - var id = 'dp' + (++this.uuid); + this.uuid += 1; + var id = 'dp' + this.uuid; this._dialogInput = $('<input type="text" id="' + id + '" style="position: absolute; top: -100px; width: 0px; z-index: -10;"/>'); this._dialogInput.keydown(this._doKeyDown); |