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

jquery / jquery-ui

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 246
    • 27
  • Source
  • Commits
  • Network (27)
  • Graphs
  • Tree: 64f6bfa

click here to add a description

click here to add a homepage

  • Switch Branches (4)
    • bind
    • master
    • panel
    • tooltip
  • Switch Tags (15)
    • 1.8rc3
    • 1.8rc2
    • 1.8rc1
    • 1.8b1
    • 1.8a2
    • 1.8a1
    • 1.8
    • 1.7
    • 1.6rc6
    • 1.6rc5
    • 1.6rc3
    • 1.6rc2
    • 1.6
    • 1.5.2
    • 1.5.1
  • Comments
Sending Request…

The official jQuery user interface library. — Read more

  Cancel

http://jqueryui.com/

  Cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Merge branch 'master' of github.com:jquery/jquery-ui
jzaefferer (author)
Sat Mar 20 13:52:31 -0700 2010
commit  64f6bfae3a37cae9cc1ddcb77866669021202cb6
tree    d270f78ea70bc04efd5934aa3b52e375cdc6b345
parent  d4ad2cb837565b16f7a11558a0f94c8c799d8522 parent  0e2484950b5df8d99f949a73c9c3fe4d42e97b8b
M ui/jquery.ui.autocomplete.js 14 ••••
0
ui/jquery.ui.autocomplete.js
...
60
61
62
63
 
64
65
66
...
334
335
336
337
338
 
 
339
340
341
342
343
 
 
344
345
346
...
481
482
483
484
485
 
 
486
487
488
...
60
61
62
 
63
64
65
66
...
334
335
336
 
 
337
338
339
340
341
 
 
342
343
344
345
346
...
481
482
483
 
 
484
485
486
487
488
0
@@ -60,7 +60,7 @@ $.widget( "ui.autocomplete", {
0
           if ( !self.menu.active ) {
0
             return;
0
           }
0
-          self.menu.select();
0
+          self.menu.select( event );
0
           break;
0
         case keyCode.ESCAPE:
0
           self.element.val( self.term );
0
@@ -334,13 +334,13 @@ $.widget("ui.menu", {
0
         role: "listbox",
0
         "aria-activedescendant": "ui-active-menuitem"
0
       })
0
-      .click(function(e) {
0
-        if ( !$( e.target ).closest( ".ui-menu-item" ).length ) {
0
+      .click(function( event ) {
0
+        if ( !$( event.target ).closest( ".ui-menu-item" ).length ) {
0
           return;
0
         }
0
         // temporary
0
-        e.preventDefault();
0
-        self.select();
0
+        event.preventDefault();
0
+        self.select( event );
0
       });
0
     this.refresh();
0
   },
0
@@ -481,8 +481,8 @@ $.widget("ui.menu", {
0
     return this.element.height() < this.element.attr("scrollHeight");
0
   },
0
 
0
-  select: function() {
0
-    this._trigger("selected", null, { item: this.active });
0
+  select: function( event ) {
0
+    this._trigger("selected", event, { item: this.active });
0
   }
0
 });
0
 

Comments

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