github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

jquery / jquery-ui

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 458
    • 66
  • Source
  • Commits
  • Network (66)
  • Graphs
  • Tree: 0ad5ac7

click here to add a description

click here to add a homepage

  • Switch Branches (7)
    • bind
    • devpreview
    • formcontrols
    • master
    • menu
    • panel
    • tooltip
  • Switch Tags (17)
    • 1.9m1
    • 1.8rc3
    • 1.8rc2
    • 1.8rc1
    • 1.8b1
    • 1.8a2
    • 1.8a1
    • 1.8.1
    • 1.8
    • 1.7
    • 1.6rc6
    • 1.6rc5
    • 1.6rc3
    • 1.6rc2
    • 1.6
    • 1.5.2
    • 1.5.1
  • Comments
  • Contributors
Sending Request…

The official jQuery user interface library. — Read more

  Cancel

http://jqueryui.com/

  Cancel
  • HTTP
  • Git Read-Only

This URL has Read+Write access

Datepicker: avoid ambiguous + ++ in min file. Partial fix for #5576 - invalid 
increment operand
rdworth (author)
Tue May 04 20:11:06 -0700 2010
commit  0ad5ac73822fdabef26e
tree    b8fe3f4fc39a2af8dc5f
parent  37e8dd605da5d99600c0
M ui/jquery.ui.datepicker.js 9 ••••
Txt ui/jquery.ui.datepicker.js
  • View file @ 0ad5ac7
... ...
@@ -153,8 +153,10 @@ $.extend(Datepicker.prototype, {
153 153
     }
154 154
     var nodeName = target.nodeName.toLowerCase();
155 155
     var inline = (nodeName == 'div' || nodeName == 'span');
156  
-    if (!target.id)
157  
-      target.id = 'dp' + (++this.uuid);
  156
+    if (!target.id) {
  157
+      this.uuid += 1;
  158
+      target.id = 'dp' + this.uuid;
  159
+    }
158 160
     var inst = this._newInst($(target), inline);
159 161
     inst.settings = $.extend({}, settings || {}, inlineSettings || {});
160 162
     if (nodeName == 'input') {
... ...
@@ -285,7 +287,8 @@ $.extend(Datepicker.prototype, {
285 287
   _dialogDatepicker: function(input, date, onSelect, settings, pos) {
286 288
     var inst = this._dialogInst; // internal instance
287 289
     if (!inst) {
288  
-      var id = 'dp' + (++this.uuid);
  290
+      this.uuid += 1;
  291
+      var id = 'dp' + this.uuid;
289 292
       this._dialogInput = $('<input type="text" id="' + id +
290 293
         '" style="position: absolute; top: -100px; width: 0px; z-index: -10;"/>');
291 294
       this._dialogInput.keydown(this._doKeyDown);

0 notes on commit 0ad5ac7

Please log in to comment.
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server