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();
|
delegateElement = this.widget();
|
||||||
} else {
|
} else {
|
||||||
element = delegateElement = $( element );
|
element = delegateElement = $( element );
|
||||||
if ( !this.bindings.find(element).length ) {
|
if ( !this.bindings.find( element ).length ) {
|
||||||
this.bindings = this.bindings.add( element );
|
this.bindings = this.bindings.add( element );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -142,7 +142,7 @@ return $.widget( "ui.selectable", $.ui.mouse, {
|
|||||||
var element = $( event.target ).closest( ":data(selectable-item)" );
|
var element = $( event.target ).closest( ":data(selectable-item)" );
|
||||||
if ( element.length ) {
|
if ( element.length ) {
|
||||||
var selectee = element.data( "selectable-item" ),
|
var selectee = element.data( "selectable-item" ),
|
||||||
doSelect = ( !event.metaKey && !event.ctrlKey) ||
|
doSelect = ( !event.metaKey && !event.ctrlKey ) ||
|
||||||
!selectee.$element.hasClass( "ui-selected" );
|
!selectee.$element.hasClass( "ui-selected" );
|
||||||
that._removeClass( selectee.$element, doSelect ? "ui-unselecting" : "ui-selected" )
|
that._removeClass( selectee.$element, doSelect ? "ui-unselecting" : "ui-selected" )
|
||||||
._addClass( selectee.$element, doSelect ? "ui-selecting" : "ui-unselecting" );
|
._addClass( selectee.$element, doSelect ? "ui-selecting" : "ui-unselecting" );
|
||||||
@ -154,11 +154,11 @@ return $.widget( "ui.selectable", $.ui.mouse, {
|
|||||||
if ( doSelect ) {
|
if ( doSelect ) {
|
||||||
that._trigger( "selecting", event, {
|
that._trigger( "selecting", event, {
|
||||||
selecting: selectee.element
|
selecting: selectee.element
|
||||||
});
|
} );
|
||||||
} else {
|
} else {
|
||||||
that._trigger( "unselecting", event, {
|
that._trigger( "unselecting", event, {
|
||||||
unselecting: selectee.element
|
unselecting: selectee.element
|
||||||
});
|
} );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user