]> source.dussan.org Git - jquery.git/commitdiff
Fix indentation issue with last cherry-pick.
authorDave Methvin <dave.methvin@gmail.com>
Sat, 6 Apr 2013 20:50:36 +0000 (16:50 -0400)
committerDave Methvin <dave.methvin@gmail.com>
Sat, 6 Apr 2013 20:50:36 +0000 (16:50 -0400)
src/manipulation.js

index 196794f83faab6a9bf46f188bc3bd6452072c7e9..2ab8b59ed314b092f7dc5786fc590a3cbc530804 100644 (file)
@@ -166,17 +166,17 @@ jQuery.fn.extend({
                while ( i-- ) {
                        elem = elems[ i ];
 
-                               if ( !keepData && elem.nodeType === 1 ) {
-                                       jQuery.cleanData( getAll( elem ) );
-                               }
+                       if ( !keepData && elem.nodeType === 1 ) {
+                               jQuery.cleanData( getAll( elem ) );
+                       }
 
-                               if ( elem.parentNode ) {
-                                       if ( keepData && jQuery.contains( elem.ownerDocument, elem ) ) {
-                                               setGlobalEval( getAll( elem, "script" ) );
-                                       }
-                                       elem.parentNode.removeChild( elem );
+                       if ( elem.parentNode ) {
+                               if ( keepData && jQuery.contains( elem.ownerDocument, elem ) ) {
+                                       setGlobalEval( getAll( elem, "script" ) );
                                }
+                               elem.parentNode.removeChild( elem );
                        }
+               }
 
                return this;
        },