git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed typo from commit 542099a278e79dce38e814e7e7b448a1b73df82f.
[jquery.git]
/
src
/
attributes.js
diff --git
a/src/attributes.js
b/src/attributes.js
index
fb5b16b
..
0a60b0d
100644
(file)
--- a/
src/attributes.js
+++ b/
src/attributes.js
@@
-163,8
+163,8
@@
jQuery.fn.extend({
jQuery.each({
removeAttr: function( name ) {
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 );
}
},
this.removeAttribute( name );
}
},
@@
-211,7
+211,8
@@
jQuery.extend({
data: true,
width: true,
height: true,
data: true,
width: true,
height: true,
- offset: true
+ offset: true,
+ bind: true
},
attr: function( elem, name, value ) {
},
attr: function( elem, name, value ) {