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