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

jquery / jquery-ui

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 556
    • 89
  • Source
  • Commits
  • Network (89)
  • Graphs
  • Tree: fcbf4c0

click here to add a description

click here to add a homepage

  • Switch Branches (7)
    • bind
    • devpreview
    • formcontrols
    • master
    • menu
    • panel
    • tooltip
  • Switch Tags (18)
    • 1.9m1
    • 1.8rc3
    • 1.8rc2
    • 1.8rc1
    • 1.8b1
    • 1.8a2
    • 1.8a1
    • 1.8.2
    • 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

Tabs: Removed instances of " .. + (++ .." to avoid a minification bug in closure 
compiler. Fixes #5576 - invalid increment operand.
scottgonzalez (author)
Mon May 17 17:48:07 -0700 2010
commit  fcbf4c0872cfc0b0c9fa
tree    f07da4ba4db2d6b42bf7
parent  bf673476ee6a20cb1ca4
M ui/jquery.ui.tabs.js 12 ••••
Txt ui/jquery.ui.tabs.js
  • View file @ fcbf4c0
... ...
@@ -16,6 +16,14 @@
16 16
 var tabId = 0,
17 17
   listId = 0;
18 18
 
  19
+function getNextTabId() {
  20
+  return ++tabId;
  21
+}
  22
+
  23
+function getNextListId() {
  24
+  return ++listId;
  25
+}
  26
+
19 27
 $.widget("ui.tabs", {
20 28
   options: {
21 29
     add: null,
... ...
@@ -56,7 +64,7 @@ $.widget("ui.tabs", {
56 64
 
57 65
   _tabId: function(a) {
58 66
     return a.title && a.title.replace(/\s/g, '_').replace(/[^A-Za-z0-9\-_:\.]/g, '') ||
59  
-      this.options.idPrefix + (++tabId);
  67
+      this.options.idPrefix + getNextTabId();
60 68
   },
61 69
 
62 70
   _sanitizeSelector: function(hash) {
... ...
@@ -64,7 +72,7 @@ $.widget("ui.tabs", {
64 72
   },
65 73
 
66 74
   _cookie: function() {
67  
-    var cookie = this.cookie || (this.cookie = this.options.cookie.name || 'ui-tabs-' + (++listId));
  75
+    var cookie = this.cookie || (this.cookie = this.options.cookie.name || 'ui-tabs-' + getNextListId());
68 76
     return $.cookie.apply(null, [cookie].concat($.makeArray(arguments)));
69 77
   },
70 78
 

0 notes on commit fcbf4c0

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