git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed an issue with how CSS property methods were being handled.
[jquery.git]
/
src
/
jquery
/
jquery.js
diff --git
a/src/jquery/jquery.js
b/src/jquery/jquery.js
index
846c815
..
ec97116
100644
(file)
--- a/
src/jquery/jquery.js
+++ b/
src/jquery/jquery.js
@@
-557,6
+557,12
@@
jQuery.fn = jQuery.prototype = {
return jQuery.find(t,a);
}), arguments );
},
return jQuery.find(t,a);
}), arguments );
},
+
+ clone: function(deep) {
+ return this.pushStack( jQuery.map( this, function(a){
+ return a.cloneNode( deep != undefined ? deep : true );
+ }), arguments );
+ },
/**
* Removes all elements from the set of matched elements that do not
/**
* Removes all elements from the set of matched elements that do not
@@
-847,7
+853,7
@@
jQuery.extend({
});
jQuery.each( jQuery.macros.css, function(i,n){
});
jQuery.each( jQuery.macros.css, function(i,n){
- jQuery.fn[ i ] = function(h) {
+ jQuery.fn[ n ] = function(h) {
return h == undefined ?
( this.length ? jQuery.css( this[0], n ) : null ) :
this.css( n, h );
return h == undefined ?
( this.length ? jQuery.css( this[0], n ) : null ) :
this.css( n, h );