Side navigation
#4115 closed enhancement (fixed)
Opened February 10, 2009 11:03PM UTC
Closed March 19, 2009 03:18AM UTC
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: |
Description
For the last line in the initialization function just have it be:
jQuery.offset.initialize = function(){};
Attachments (0)
Change History (3)
Changed February 11, 2009 01:33PM UTC by comment:1
type: | bug → enhancement |
---|
Changed February 11, 2009 01:37PM UTC by comment:2
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(); };
Changed March 19, 2009 03:18AM UTC by comment:3
resolution: | → fixed |
---|---|
status: | new → closed |
fixed in r6285
Another point to consider: Should initialization be done on page load?