mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Core: Whitespace.
This commit is contained in:
parent
c343598d2a
commit
8aa410b2fc
16
ui/jquery.ui.core.js
vendored
16
ui/jquery.ui.core.js
vendored
@ -288,7 +288,7 @@ $.extend( $.ui, {
|
|||||||
if ( !set || !instance.element[ 0 ].parentNode || instance.element[ 0 ].parentNode.nodeType === 11 ) {
|
if ( !set || !instance.element[ 0 ].parentNode || instance.element[ 0 ].parentNode.nodeType === 11 ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
for ( i = 0; i < set.length; i++ ) {
|
for ( i = 0; i < set.length; i++ ) {
|
||||||
if ( instance.options[ set[ i ][ 0 ] ] ) {
|
if ( instance.options[ set[ i ][ 0 ] ] ) {
|
||||||
set[ i ][ 1 ].apply( instance.element, args );
|
set[ i ][ 1 ].apply( instance.element, args );
|
||||||
@ -296,24 +296,24 @@ $.extend( $.ui, {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
contains: $.contains,
|
contains: $.contains,
|
||||||
|
|
||||||
// only used by resizable
|
// only used by resizable
|
||||||
hasScroll: function( el, a ) {
|
hasScroll: function( el, a ) {
|
||||||
|
|
||||||
//If overflow is hidden, the element might have extra content, but the user wants to hide it
|
//If overflow is hidden, the element might have extra content, but the user wants to hide it
|
||||||
if ( $( el ).css( "overflow" ) === "hidden") {
|
if ( $( el ).css( "overflow" ) === "hidden") {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
var scroll = ( a && a === "left" ) ? "scrollLeft" : "scrollTop",
|
var scroll = ( a && a === "left" ) ? "scrollLeft" : "scrollTop",
|
||||||
has = false;
|
has = false;
|
||||||
|
|
||||||
if ( el[ scroll ] > 0 ) {
|
if ( el[ scroll ] > 0 ) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: determine which cases actually cause this to happen
|
// TODO: determine which cases actually cause this to happen
|
||||||
// if the element doesn't have the scroll set, see if it's possible to
|
// if the element doesn't have the scroll set, see if it's possible to
|
||||||
// set the scroll
|
// set the scroll
|
||||||
@ -322,7 +322,7 @@ $.extend( $.ui, {
|
|||||||
el[ scroll ] = 0;
|
el[ scroll ] = 0;
|
||||||
return has;
|
return has;
|
||||||
},
|
},
|
||||||
|
|
||||||
// these are odd functions, fix the API or move into individual plugins
|
// these are odd functions, fix the API or move into individual plugins
|
||||||
isOverAxis: function( x, reference, size ) {
|
isOverAxis: function( x, reference, size ) {
|
||||||
//Determines when x coordinate is over "b" element axis
|
//Determines when x coordinate is over "b" element axis
|
||||||
|
Loading…
Reference in New Issue
Block a user