No ticket: Small simplification of .removeProp. Close gh-1227.

This commit is contained in:
Oleg 2013-04-07 12:14:31 +04:00 committed by Richard Gibson
parent 18d006762c
commit eaedf098b3

View File

@ -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 ];
});
},