Commit 135a384c authored by Xavi's avatar Xavi

Bug 7931; cleaned up white space in accordance to style guide

parent 0942b3b3
......@@ -260,11 +260,11 @@ jQuery.fn.extend({
jQuery.each( ["Left", "Top"], function( i, name ) {
var method = "scroll" + name;
jQuery.fn[ method ] = function(val) {
jQuery.fn[ method ] = function( val ) {
var elem, win;
if(val === undefined) {
elem = this[0];
if( val === undefined ) {
elem = this[ 0 ];
if( !elem ) {
return null;
}
......@@ -283,10 +283,9 @@ jQuery.each( ["Left", "Top"], function( i, name ) {
if ( win ) {
win.scrollTo(
!i ? val : jQuery(win).scrollLeft(),
i ? val : jQuery(win).scrollTop()
!i ? val : jQuery( win ).scrollLeft(),
i ? val : jQuery( win ).scrollTop()
);
} else {
this[ method ] = val;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment