diff options
author | Scott González <scott.gonzalez@gmail.com> | 2010-03-20 14:37:25 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2010-03-20 14:37:25 -0400 |
commit | 22ba931c395aa8859c0cc7a2cf08e7bb0027db78 (patch) | |
tree | 871652d6fd6d6dc8a3bfc512f068f512a5d7c4df /demos/autocomplete | |
parent | 65d8fa2b0cb8b96cf3e869481546ed22a19f98ff (diff) | |
download | jquery-ui-22ba931c395aa8859c0cc7a2cf08e7bb0027db78.tar.gz jquery-ui-22ba931c395aa8859c0cc7a2cf08e7bb0027db78.zip |
Menu: skip over elements that aren't menu items.
Fixes #5188 - Refactor menu rendering for more customizing.
Diffstat (limited to 'demos/autocomplete')
-rw-r--r-- | demos/autocomplete/categories.html | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/demos/autocomplete/categories.html b/demos/autocomplete/categories.html index 2340b32f4..bb59bf31e 100644 --- a/demos/autocomplete/categories.html +++ b/demos/autocomplete/categories.html @@ -19,29 +19,6 @@ } </style> <script type="text/javascript"> - $.extend( $.ui.menu.prototype, { - next: function() { - this.move("next", ".ui-menu-item:first"); - }, - - previous: function() { - this.move("prev", ".ui-menu-item:last"); - }, - - move: function(direction, edge) { - if (!this.active) { - this.activate(this.element.children(edge)); - return; - } - var next = this.active[direction + "All"]('.ui-menu-item').eq( 0 ); - if (next.length) { - this.activate(next); - } else { - this.activate(this.element.children(edge)); - } - } - }); - $.widget("custom.catcomplete", $.ui.autocomplete, { _renderMenu: function( ul, items ) { var self = this, |