Commit eaedf098 authored by Oleg's avatar Oleg Committed by Richard Gibson

No ticket: Small simplification of .removeProp. Close gh-1227.

parent 18d00676
...@@ -20,10 +20,8 @@ jQuery.fn.extend({ ...@@ -20,10 +20,8 @@ jQuery.fn.extend({
}, },
removeProp: function( name ) { removeProp: function( name ) {
name = jQuery.propFix[ name ] || name;
return this.each(function() { return this.each(function() {
this[ name ] = undefined; delete this[ jQuery.propFix[ name ] || name ];
delete this[ name ];
}); });
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment