Added back support.js test for getSetAttribute and removed some duplicate code that crept into attributes.js
This commit is contained in:
parent
c10a76ec71
commit
215c507f79
2 changed files with 3 additions and 16 deletions
|
@ -24,20 +24,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