Bug Tracker

Ticket #4115 (closed enhancement: fixed)

Opened 6 years ago

Last modified 6 years ago

Faster Offset Initialization

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

Description

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

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

Change History

comment:1 Changed 6 years ago by john

  • Type changed from bug to enhancement

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

comment:2 Changed 6 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 6 years ago by brandon

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

fixed in r6285

Note: See TracTickets for help on using tickets.