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

jquery / jquery-ui

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 771
    • 164
  • Source
  • Commits
  • Network (164)
  • Graphs
  • Tree: bf977a6

click here to add a description

click here to add a homepage

  • Switch Branches (8)
    • bind
    • devpreview
    • formcontrols
    • master
    • menu
    • panel
    • tooltip
    • widget-super
  • Switch Tags (19)
    • 1.9m2
    • 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

Menu: Improve first and last methods to take non-menuitem items into account
jzaefferer (author)
Sat Jun 19 08:16:15 -0700 2010
commit  bf977a677059b48a6d34
tree    c0ff2e13bafefc6ccf0e
parent  d5df3a5a5649c299ae40
M ui/jquery.ui.menu.js 4 ••••
Txt ui/jquery.ui.menu.js
  • View file @ bf977a6
... ...
@@ -155,11 +155,11 @@ $.widget("ui.menu", {
155 155
   },
156 156
 
157 157
   first: function() {
158  
-    return this.active && !this.active.prev().length;
  158
+    return this.active && !this.active.prevAll(".ui-menu-item").length;
159 159
   },
160 160
 
161 161
   last: function() {
162  
-    return this.active && !this.active.next().length;
  162
+    return this.active && !this.active.nextAll(".ui-menu-item").length;
163 163
   },
164 164
 
165 165
   _move: function(direction, edge, event) {

0 notes on commit bf977a6

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
  • English
  • Català
  • Deutsch
  • Español
  • Français
  • Hrvatski
  • Indonesia
  • Italiano
  • 日本語
  • Nederlands
  • Norsk
  • Polski
  • Português (BR)
  • Српски
  • Svenska