mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Fixed code spacing issues
This commit is contained in:
parent
ad11d34dda
commit
81621f42e5
@ -590,7 +590,7 @@ $.Widget.prototype = {
|
||||
delegateElement = this.widget();
|
||||
} else {
|
||||
element = delegateElement = $( element );
|
||||
if ( !this.bindings.find(element).length ) {
|
||||
if ( !this.bindings.find( element ).length ) {
|
||||
this.bindings = this.bindings.add( element );
|
||||
}
|
||||
}
|
||||
|
@ -142,7 +142,7 @@ return $.widget( "ui.selectable", $.ui.mouse, {
|
||||
var element = $( event.target ).closest( ":data(selectable-item)" );
|
||||
if ( element.length ) {
|
||||
var selectee = element.data( "selectable-item" ),
|
||||
doSelect = ( !event.metaKey && !event.ctrlKey) ||
|
||||
doSelect = ( !event.metaKey && !event.ctrlKey ) ||
|
||||
!selectee.$element.hasClass( "ui-selected" );
|
||||
that._removeClass( selectee.$element, doSelect ? "ui-unselecting" : "ui-selected" )
|
||||
._addClass( selectee.$element, doSelect ? "ui-selecting" : "ui-unselecting" );
|
||||
@ -154,11 +154,11 @@ return $.widget( "ui.selectable", $.ui.mouse, {
|
||||
if ( doSelect ) {
|
||||
that._trigger( "selecting", event, {
|
||||
selecting: selectee.element
|
||||
});
|
||||
} );
|
||||
} else {
|
||||
that._trigger( "unselecting", event, {
|
||||
unselecting: selectee.element
|
||||
});
|
||||
} );
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user