#10819 (Eliminate "this.on.call(this, ") - jQuery (original) (raw)

#10819 closed enhancement (fixed)

Opened November 17, 2011 06:32PM UTC

Closed December 06, 2011 10:21PM UTC

Last modified December 10, 2011 06:41PM UTC

Reported by: anonymous Owned by: rwaldron
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.

Attachments (0) Change History (3)