Skip to content
Permalink
Browse files

Popup: Missing semicolon. Can't use :ui-button selected if button isn…

…'t loaded.
  • Loading branch information
jzaefferer committed Sep 5, 2011
1 parent c5ba053 commit 02c821da6e10bbdd31424949d73a1c2c603108fe
Showing with 2 additions and 2 deletions.
  1. +2 −2 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

0 comments on commit 02c821d

Please sign in to comment.
You can’t perform that action at this time.