]> source.dussan.org Git - jquery.git/commitdiff
Fix some whitespace issues.
authorAnton M <obhvsbypqghgc@gmail.com>
Tue, 15 Feb 2011 21:03:23 +0000 (22:03 +0100)
committerAnton M <obhvsbypqghgc@gmail.com>
Tue, 15 Feb 2011 21:09:09 +0000 (22:09 +0100)
src/core.js
src/css.js
src/effects.js
src/event.js
src/offset.js
src/traversing.js
test/unit/event.js

index 1e1bd3ef1a0eafb2612fe42684f874a4c9f0b976..586e372de5edf029e392975a41d2e5eee30aceff 100644 (file)
@@ -302,7 +302,7 @@ jQuery.fn = jQuery.prototype = {
 jQuery.fn.init.prototype = jQuery.fn;
 
 jQuery.extend = jQuery.fn.extend = function() {
-        var options, name, src, copy, copyIsArray, clone,
+       var options, name, src, copy, copyIsArray, clone,
                target = arguments[0] || {},
                i = 1,
                length = arguments.length,
index 19c6342d22b853fd087becaec4b373bbb5b16eaa..8a982312f17a0c70263af45323c7028494c8b1c7 100644 (file)
@@ -263,7 +263,7 @@ if ( document.defaultView && document.defaultView.getComputedStyle ) {
 
 if ( document.documentElement.currentStyle ) {
        currentStyle = function( elem, name ) {
-               var left, 
+               var left,
                        ret = elem.currentStyle && elem.currentStyle[ name ],
                        rsLeft = elem.runtimeStyle && elem.runtimeStyle[ name ],
                        style = elem.style;
index bebcc431fe511188afdabbbf84497312ace65801..58a15139cfc7dbb9ef93e1e68c759c396217d941 100644 (file)
@@ -519,21 +519,21 @@ function defaultDisplay( nodeName ) {
                        disabled[ idx ] = style.disabled;
                        style.disabled = true;
                }
-               
-               // To accurately check an element's default display value, 
+
+               // To accurately check an element's default display value,
                // create a temp element and check it's default display, this
                // will ensure that the value returned is not a user-tampered
                // value.
                elem = jQuery("<" + nodeName + ">").appendTo("body");
                display = elem.css("display");
-               
+
                // Remove temp element
                elem.remove();
 
                if ( display === "none" || display === "" ) {
                        display = "block";
                }
-               
+
                // Store the correct default display
                elemdisplay[ nodeName ] = display;
 
index 758c8f560c088740b1e03ac736e26a214f6a4c4d..daafe54aa54dc162ef4ee8387f5a9faf7550ffd4 100644 (file)
@@ -33,7 +33,7 @@ jQuery.event = {
                        handler = returnFalse;
                } else if ( !handler ) {
                        // Fixes bug #7229. Fix recommended by jdalton
-                 return;
+                       return;
                }
 
                var handleObjIn, handleObj;
index a10d30a0fefb1a4d6c8ffeba99c1104aba2b69cb..1003c400c9223139257c10e511d3828034b47225 100644 (file)
@@ -275,7 +275,7 @@ 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).scrollTop()
                                        );
 
                                } else {
index 90601df55cddfeb8d2e535674f132d1f0d8b787a..fe2e33d88a257c252d6b560b56143a57ee12f034 100644 (file)
@@ -204,11 +204,11 @@ jQuery.each({
 }, function( name, fn ) {
        jQuery.fn[ name ] = function( until, selector ) {
                var ret = jQuery.map( this, fn, until ),
-                // The variable 'args' was introduced in
-                // https://github.com/jquery/jquery/commit/52a0238
-                // to work around a bug in Chrome 10 (Dev) and should be removed when the bug is fixed.
-                // http://code.google.com/p/v8/issues/detail?id=1050
-                    args = slice.call(arguments);
+                       // The variable 'args' was introduced in
+                       // https://github.com/jquery/jquery/commit/52a0238
+                       // to work around a bug in Chrome 10 (Dev) and should be removed when the bug is fixed.
+                       // http://code.google.com/p/v8/issues/detail?id=1050
+                       args = slice.call(arguments);
 
                if ( !runtil.test( name ) ) {
                        selector = until;
index 6b78a249553c3a6ddc157a8b574d72025f20a1a2..b7b26046214df7645e6d71836fd489e2eed010fc 100644 (file)
@@ -615,18 +615,18 @@ test("unbind(type)", function() {
 
        message = "unbind many with function";
        $elem.bind('error1 error2',error)
-                .unbind('error1 error2', error )
-                .trigger('error1').triggerHandler('error2');
+               .unbind('error1 error2', error )
+               .trigger('error1').triggerHandler('error2');
 
        message = "unbind many"; // #3538
        $elem.bind('error1 error2',error)
-                .unbind('error1 error2')
-                .trigger('error1').triggerHandler('error2');
+               .unbind('error1 error2')
+               .trigger('error1').triggerHandler('error2');
 
        message = "unbind without a type or handler";
        $elem.bind("error1 error2.test",error)
-                .unbind()
-                .trigger("error1").triggerHandler("error2");
+               .unbind()
+               .trigger("error1").triggerHandler("error2");
 });
 
 test("unbind(eventObject)", function() {