Bug Tracker

Opened 7 years ago

Closed 7 years ago

#4115 closed enhancement (fixed)

Faster Offset Initialization

Reported by: john Owned by: brandon
Priority: major Milestone: 1.3.2
Component: offset Version: 1.3.1
Keywords: Cc:
Blocked by: Blocking:


For the last line in the initialization function just have it be:

jQuery.offset.initialize = function(){};

Change History (3)

comment:1 Changed 7 years ago by john

  • Type changed from bug to enhancement

Another point to consider: Should initialization be done on page load?

comment:2 Changed 7 years ago by john

Another thought - what if the offset method was written like this:

  jQuery.fn.offset = function(){
     // do initialization
     jQuery.fn.offset = jQuery.fn.offset.offset;
     return this.offset();

comment:3 Changed 7 years ago by brandon

  • Resolution set to fixed
  • Status changed from new to closed

fixed in r6285

Note: See TracTickets for help on using tickets.