aboutsummaryrefslogtreecommitdiffstats
path: root/src/attributes.js
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2009-12-11 12:47:41 -0800
committerJohn Resig <jeresig@gmail.com>2009-12-11 12:47:41 -0800
commit638c093b857197c0b25bd8b1ba5a9b00f82b39d5 (patch)
treedcaab05c725b54d07586cb5a21c5da2679e66e86 /src/attributes.js
parent65ebf57c1e5d7fa96536b66d4fcacbafad8dc1e5 (diff)
downloadjquery-638c093b857197c0b25bd8b1ba5a9b00f82b39d5.tar.gz
jquery-638c093b857197c0b25bd8b1ba5a9b00f82b39d5.zip
Fixed typo from commit 542099a278e79dce38e814e7e7b448a1b73df82f.
Diffstat (limited to 'src/attributes.js')
-rw-r--r--src/attributes.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/attributes.js b/src/attributes.js
index 9c868ee03..0a60b0d74 100644
--- a/src/attributes.js
+++ b/src/attributes.js
@@ -163,8 +163,8 @@ jQuery.fn.extend({
jQuery.each({
removeAttr: function( name ) {
- jQuery.attr( this, name, "" );
- if (this.nodeType == 1) {
+ if ( this.nodeType === 1 ) {
+ this[ jQuery.isXMLDoc( this ) ? name : jQuery.props[ name ] || name ] = null;
this.removeAttribute( name );
}
},