]> source.dussan.org Git - jquery.git/commitdiff
No ticket: Small simplification of .removeProp. Close gh-1227.
authorOleg <markelog@gmail.com>
Sun, 7 Apr 2013 08:14:31 +0000 (12:14 +0400)
committerRichard Gibson <richard.gibson@gmail.com>
Mon, 8 Apr 2013 03:33:04 +0000 (23:33 -0400)
src/attributes.js

index 57257eba30a1a745913f9306c5ebb543257fbfb7..c445904272556dde55efdf054bcfe5304cc1a409 100644 (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 ];
                });
        },