From eaedf098b311b2aaa48970b284e3b426562d0614 Mon Sep 17 00:00:00 2001 From: Oleg Date: Sun, 7 Apr 2013 12:14:31 +0400 Subject: [PATCH] No ticket: Small simplification of .removeProp. Close gh-1227. --- src/attributes.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 ]; }); }, -- 2.39.5