Skip to content

Commit

Permalink
Core: Whitespace.
Browse files Browse the repository at this point in the history
  • Loading branch information
scottgonzalez committed Aug 23, 2012
1 parent c343598 commit 8aa410b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions ui/jquery.ui.core.js
Expand Up @@ -288,32 +288,32 @@ $.extend( $.ui, {
if ( !set || !instance.element[ 0 ].parentNode || instance.element[ 0 ].parentNode.nodeType === 11 ) {
return;
}

for ( i = 0; i < set.length; i++ ) {
if ( instance.options[ set[ i ][ 0 ] ] ) {
set[ i ][ 1 ].apply( instance.element, args );
}
}
}
},

contains: $.contains,

// only used by resizable
hasScroll: function( el, a ) {

//If overflow is hidden, the element might have extra content, but the user wants to hide it
if ( $( el ).css( "overflow" ) === "hidden") {
return false;
}

var scroll = ( a && a === "left" ) ? "scrollLeft" : "scrollTop",
has = false;

if ( el[ scroll ] > 0 ) {
return true;
}

// TODO: determine which cases actually cause this to happen
// if the element doesn't have the scroll set, see if it's possible to
// set the scroll
Expand All @@ -322,7 +322,7 @@ $.extend( $.ui, {
el[ scroll ] = 0;
return has;
},

// these are odd functions, fix the API or move into individual plugins
isOverAxis: function( x, reference, size ) {
//Determines when x coordinate is over "b" element axis
Expand Down

0 comments on commit 8aa410b

Please sign in to comment.