diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2011-09-05 17:59:36 +0200 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2011-09-05 17:59:36 +0200 |
commit | 02c821da6e10bbdd31424949d73a1c2c603108fe (patch) | |
tree | a566ee5b12d935ad1c3a5f6c908c542716e3fccc | |
parent | c5ba0535cf8fad222bf54249fb74339faafa9310 (diff) | |
download | jquery-ui-02c821da6e10bbdd31424949d73a1c2c603108fe.tar.gz jquery-ui-02c821da6e10bbdd31424949d73a1c2c603108fe.zip |
Popup: Missing semicolon. Can't use :ui-button selected if button isn't loaded.
-rw-r--r-- | ui/jquery.ui.popup.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/jquery.ui.popup.js b/ui/jquery.ui.popup.js index 508209a55..8e5cf198c 100644 --- a/ui/jquery.ui.popup.js +++ b/ui/jquery.ui.popup.js @@ -45,13 +45,13 @@ $.widget( "ui.popup", { .attr( "aria-owns", this.element.attr( "id" ) ); this.element - .addClass( "ui-popup" ) + .addClass( "ui-popup" ); this.close(); this._bind(this.options.trigger, { keydown: function( event ) { // prevent space-to-open to scroll the page, only happens for anchor ui.button - if ( this.options.trigger.is( "a:ui-button" ) && event.keyCode == $.ui.keyCode.SPACE ) { + if ( $.ui.button && this.options.trigger.is( "a:ui-button" ) && event.keyCode == $.ui.keyCode.SPACE ) { event.preventDefault(); } // TODO handle SPACE to open popup? only when not handled by ui.button |