Merge branch 'attrhooks.1.6v2' of https://github.com/timmywil/jquery

This commit is contained in:
jeresig 2011-04-10 17:11:35 -04:00
commit 92dfb53314
3 changed files with 3 additions and 20 deletions

View file

@ -23,20 +23,6 @@ jQuery.fn.extend({
return jQuery.access( this, name, value, true, jQuery.prop );
},
removeProp: function( name ) {
return this.each(function() {
// try/catch handles cases where IE balks (such as removing a property on window)
try {
this[ name ] = undefined;
delete this[ name ];
} catch( e ) {}
});
},
prop: function( name, value ) {
return jQuery.access( this, name, value, true, jQuery.prop );
},
removeProp: function( name ) {
return this.each(function() {
// try/catch handles cases where IE balks (such as removing a property on window)