diff options
author | Oleg <markelog@gmail.com> | 2013-04-07 12:14:31 +0400 |
---|---|---|
committer | Richard Gibson <richard.gibson@gmail.com> | 2013-04-07 23:33:04 -0400 |
commit | eaedf098b311b2aaa48970b284e3b426562d0614 (patch) | |
tree | fadca49fef1e4cc8b5eede0c660842689fa79bba | |
parent | 18d006762c557ed635404436f5733dccaf786f9f (diff) | |
download | jquery-eaedf098b311b2aaa48970b284e3b426562d0614.tar.gz jquery-eaedf098b311b2aaa48970b284e3b426562d0614.zip |
No ticket: Small simplification of .removeProp. Close gh-1227.
-rw-r--r-- | src/attributes.js | 4 |
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 ]; }); }, |