Bug Tracker

Modify

Ticket #4115 (closed enhancement: fixed)

Opened 5 years ago

Last modified 5 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 5 years ago by john

  • Type changed from bug to enhancement

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

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

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

fixed in r6285

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.