Bug Tracker

Opened 14 years ago

Closed 14 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 14 years ago by john

Type: bugenhancement

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

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

Resolution: fixed
Status: newclosed

fixed in r6285

Note: See TracTickets for help on using tickets.