Skip to content

Commit

Permalink
Fixed typo from commit 542099a.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeresig committed Dec 11, 2009
1 parent 65ebf57 commit 638c093
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/attributes.js
Expand Up @@ -163,8 +163,8 @@ jQuery.fn.extend({


jQuery.each({ jQuery.each({
removeAttr: function( name ) { 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 );
} }
}, },
Expand Down
2 changes: 1 addition & 1 deletion src/event.js
Expand Up @@ -680,7 +680,7 @@ function trigger( type, elem, args ) {
if ( !jQuery.support.focusBubbles ) { if ( !jQuery.support.focusBubbles ) {


jQuery.each({ focus: "focusin", blur: "focusout" }, function( orig, fix ){ jQuery.each({ focus: "focusin", blur: "focusout" }, function( orig, fix ){
event.special[ orig ] = { jQuery.event.special[ orig ] = {
setup: function() { setup: function() {
jQuery.event.add( this, fix, ieHandler ); jQuery.event.add( this, fix, ieHandler );
}, },
Expand Down

0 comments on commit 638c093

Please sign in to comment.