aboutsummaryrefslogtreecommitdiffstats
path: root/src/manipulation.js
diff options
context:
space:
mode:
authorOleg <markelog@gmail.com>2012-12-20 01:10:20 +0400
committerOleg <markelog@gmail.com>2012-12-24 03:03:28 +0400
commita10dd521df44032065b95c482f8aee1f5d505375 (patch)
tree2b93ae4463d1385a7c95e165e7c09a3bee667ef1 /src/manipulation.js
parent61d01c8d3567e2cae27fa89749ea2602bd0509bb (diff)
downloadjquery-a10dd521df44032065b95c482f8aee1f5d505375.tar.gz
jquery-a10dd521df44032065b95c482f8aee1f5d505375.zip
Remove fixDefaultChecked helper
Diffstat (limited to 'src/manipulation.js')
-rw-r--r--src/manipulation.js16
1 files changed, 1 insertions, 15 deletions
diff --git a/src/manipulation.js b/src/manipulation.js
index 2289d44df..6aed45744 100644
--- a/src/manipulation.js
+++ b/src/manipulation.js
@@ -467,8 +467,7 @@ function getAll( context, tag ) {
if ( !ret ) {
for ( ret = [], elems = context.childNodes || context; (elem = elems[ i ]) != null; i++ ) {
- core_push.apply( ret,
- !tag || jQuery.nodeName( elem, tag ) ?
+ core_push.apply( ret, !tag || jQuery.nodeName( elem, tag ) ?
getAll( elem, tag ) :
elems );
}
@@ -479,13 +478,6 @@ function getAll( context, tag ) {
ret;
}
-// Used in clean, fixes the defaultChecked property
-function fixDefaultChecked( elem ) {
- if ( manipulation_rcheckableType.test( elem.type ) ) {
- elem.defaultChecked = elem.checked;
- }
-}
-
jQuery.extend({
clone: function( elem, dataAndEvents, deepDataAndEvents ) {
var destElements, srcElements, node, i,
@@ -585,12 +577,6 @@ jQuery.extend({
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 ) {
for ( i = 0; (elem = ret[ i ]) != null; i++ ) {
container = jQuery.contains( elem.ownerDocument, elem );