mirror of
https://github.com/jquery/jquery.git
synced 2026-02-07 14:35:31 -05:00
Merge branch 'attrhooks.1.6v2' of https://github.com/timmywil/jquery
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user