diff options
author | Scott González <scott.gonzalez@gmail.com> | 2011-10-20 16:57:47 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2011-10-20 16:57:47 -0400 |
commit | a0856efef3c392d413aa6cd9bd084dc601a337c6 (patch) | |
tree | 3a1f4a5aeea257fcf0d201f60fe259878e0a3c58 /ui/jquery.ui.menu.js | |
parent | c145f1698aa4bfb8b0d1c94e2bfa83399f1de0f3 (diff) | |
download | jquery-ui-a0856efef3c392d413aa6cd9bd084dc601a337c6.tar.gz jquery-ui-a0856efef3c392d413aa6cd9bd084dc601a337c6.zip |
Widget: Added window and document properties. Fixes #7801 - Widget: Add document and window properties.
Diffstat (limited to 'ui/jquery.ui.menu.js')
-rw-r--r-- | ui/jquery.ui.menu.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/jquery.ui.menu.js b/ui/jquery.ui.menu.js index f2f758d96..bf36a77fe 100644 --- a/ui/jquery.ui.menu.js +++ b/ui/jquery.ui.menu.js @@ -85,7 +85,7 @@ $.widget( "ui.menu", { }, blur: function( event ) { this._delay( function() { - if ( ! $.contains( this.element[0], document.activeElement ) ) { + if ( ! $.contains( this.element[0], this.document[0].activeElement ) ) { this.collapseAll( event ); } }, 0); @@ -207,7 +207,7 @@ $.widget( "ui.menu", { } }); - this._bind( document, { + this._bind( this.document, { click: function( event ) { if ( !$( event.target ).closest( ".ui-menu" ).length ) { this.collapseAll( event ); |