Skip to content

Commit

Permalink
Remove fixDefaultChecked helper
Browse files Browse the repository at this point in the history
  • Loading branch information
markelog committed Dec 23, 2012
1 parent 61d01c8 commit a10dd52
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions src/manipulation.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -467,8 +467,7 @@ function getAll( context, tag ) {


if ( !ret ) { if ( !ret ) {
for ( ret = [], elems = context.childNodes || context; (elem = elems[ i ]) != null; i++ ) { for ( ret = [], elems = context.childNodes || context; (elem = elems[ i ]) != null; i++ ) {
core_push.apply( ret, core_push.apply( ret, !tag || jQuery.nodeName( elem, tag ) ?
!tag || jQuery.nodeName( elem, tag ) ?
getAll( elem, tag ) : getAll( elem, tag ) :
elems ); elems );
} }
Expand All @@ -479,13 +478,6 @@ function getAll( context, tag ) {
ret; ret;
} }


// Used in clean, fixes the defaultChecked property
function fixDefaultChecked( elem ) {
if ( manipulation_rcheckableType.test( elem.type ) ) {
elem.defaultChecked = elem.checked;
}
}

jQuery.extend({ jQuery.extend({
clone: function( elem, dataAndEvents, deepDataAndEvents ) { clone: function( elem, dataAndEvents, deepDataAndEvents ) {
var destElements, srcElements, node, i, var destElements, srcElements, node, i,
Expand Down Expand Up @@ -585,12 +577,6 @@ jQuery.extend({
container.removeChild( tmp ); container.removeChild( tmp );
} }


// Reset defaultChecked for any radios and checkboxes
// about to be appended to the DOM in IE 6/7 (#8060)
if ( !jQuery.support.appendChecked ) {
jQuery.grep( getAll( ret, "input" ), fixDefaultChecked );
}

if ( fragment ) { if ( fragment ) {
for ( i = 0; (elem = ret[ i ]) != null; i++ ) { for ( i = 0; (elem = ret[ i ]) != null; i++ ) {
container = jQuery.contains( elem.ownerDocument, elem ); container = jQuery.contains( elem.ownerDocument, elem );
Expand Down

0 comments on commit a10dd52

Please sign in to comment.