aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/attributes.js4
1 files changed, 1 insertions, 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 ];
});
},