Merge branch 'attrhooks.1.6v2' of https://github.com/timmywil/jquery
This commit is contained in:
commit
92dfb53314
3 changed files with 3 additions and 20 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue