aboutsummaryrefslogtreecommitdiffstats
path: root/src/jquery/jquery.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/jquery/jquery.js')
-rw-r--r--src/jquery/jquery.js28
1 files changed, 9 insertions, 19 deletions
diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js
index 338df7f96..4f3e03e2d 100644
--- a/src/jquery/jquery.js
+++ b/src/jquery/jquery.js
@@ -228,8 +228,7 @@ jQuery.fn = jQuery.prototype = {
jQuery.unique( data ) : data );
},
- clone: function(deep) {
- deep = deep != undefined ? deep : true;
+ clone: function() {
var $this = this.add(this.find("*"));
if (jQuery.browser.msie) {
// Need to remove events on the element and its descendants
@@ -242,7 +241,7 @@ jQuery.fn = jQuery.prototype = {
// Do the clone
var r = this.pushStack( jQuery.map( this, function(a){
- return a.cloneNode( deep );
+ return a.cloneNode( true );
}) );
if (jQuery.browser.msie) {
@@ -257,15 +256,13 @@ jQuery.fn = jQuery.prototype = {
}
// copy form values over
- if (deep) {
- var inputs = r.add(r.find('*')).filter('select,input[@type=checkbox]');
- $this.filter('select,input[@type=checkbox]').each(function(i) {
- if (this.selectedIndex)
- inputs[i].selectedIndex = this.selectedIndex;
- if (this.checked)
- inputs[i].checked = true;
- });
- }
+ var inputs = r.add(r.find('*')).filter('select,input[@type=checkbox]');
+ $this.filter('select,input[@type=checkbox]').each(function(i) {
+ if (this.selectedIndex)
+ inputs[i].selectedIndex = this.selectedIndex;
+ if (this.checked)
+ inputs[i].checked = true;
+ });
// Return the cloned set
return r;
@@ -955,13 +952,6 @@ jQuery.each( {
};
});
-// DEPRECATED
-jQuery.each( [ "eq", "lt", "gt", "contains" ], function(i,n){
- jQuery.fn[ n ] = function(num,fn) {
- return this.filter( ":" + n + "(" + num + ")", fn );
- };
-});
-
jQuery.each( [ "height", "width" ], function(i,n){
jQuery.fn[ n ] = function(h) {
return h == undefined ?