mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
No ticket: Small simplification of .removeProp. Close gh-1227.
This commit is contained in:
parent
18d006762c
commit
eaedf098b3
@ -20,10 +20,8 @@ jQuery.fn.extend({
|
|||||||
},
|
},
|
||||||
|
|
||||||
removeProp: function( name ) {
|
removeProp: function( name ) {
|
||||||
name = jQuery.propFix[ name ] || name;
|
|
||||||
return this.each(function() {
|
return this.each(function() {
|
||||||
this[ name ] = undefined;
|
delete this[ jQuery.propFix[ name ] || name ];
|
||||||
delete this[ name ];
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user