Skip to content

Commit

Permalink
Remove unnec .call( this... from one: function() {}. Fixes #10819
Browse files Browse the repository at this point in the history
  • Loading branch information
rwaldron authored and dmethvin committed Dec 6, 2011
1 parent 2c1d2b1 commit 64df670
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/event.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -915,7 +915,7 @@ jQuery.fn.extend({
}); });
}, },
one: function( types, selector, data, fn ) { one: function( types, selector, data, fn ) {
return this.on.call( this, types, selector, data, fn, 1 ); return this.on( types, selector, data, fn, 1 );
}, },
off: function( types, selector, fn ) { off: function( types, selector, fn ) {
if ( types && types.preventDefault && types.handleObj ) { if ( types && types.preventDefault && types.handleObj ) {
Expand Down

0 comments on commit 64df670

Please sign in to comment.