#10819 closed enhancement (fixed)
Eliminate "this.on.call(this, "
| Reported by: | anonymous | Owned by: | Rick Waldron |
|---|---|---|---|
| Priority: | low | Milestone: | 1.7.2 |
| Component: | event | Version: | git |
| Keywords: | Cc: | ||
| Blocked by: | Blocking: |
Description
one: function( types, selector, data, fn ) {
return this.on.call( this, types, selector, data, fn, 1 );
},
can be simplified to:
one: function( types, selector, data, fn ) {
return this.on( types, selector, data, fn, 1 );
},
since the this value is determined implicitly. Eliminating the extraneous .call(this, saves 10 bytes from the minified file.
Change History (3)
comment:1 Changed 8 years ago by
| Component: | unfiled → event |
|---|---|
| Milestone: | None → 1.next |
| Owner: | set to Rick Waldron |
| Priority: | undecided → low |
| Status: | new → assigned |
comment:2 Changed 8 years ago by
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
comment:3 Changed 8 years ago by
| Milestone: | 1.next → 1.7.2 |
|---|
Note: See
TracTickets for help on using
tickets.

Remove unnec .call( this... from one: function() {}. Fixes #10819