From: Oleg Date: Sun, 7 Apr 2013 08:14:31 +0000 (+0400) Subject: No ticket: Small simplification of .removeProp. Close gh-1227. X-Git-Tag: 2.0.0-beta3~17 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=eaedf098b311b2aaa48970b284e3b426562d0614;p=jquery.git No ticket: Small simplification of .removeProp. Close gh-1227. --- diff --git a/src/attributes.js b/src/attributes.js index 57257eba3..c44590427 100644 --- a/src/attributes.js +++ b/src/attributes.js @@ -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 ]; }); },