Opened 15 years ago
Closed 15 years ago
#2537 closed bug (fixed)
attr() can return undefined instead of 0
Reported by: | haijun-zeng | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.2.4 |
Component: | core | Version: | 1.2.3 |
Keywords: | offsetLeft | Cc: | |
Blocked by: | Blocking: |
Description
I use $(this).attr("offsetLeft") to get the offsetLeft of a DIV, when the offsetLeft is 0, it will return 'undefined'. when the offsetLeft is large then 0, it will return the correct number.So, I need to use this.offsetLeft instead of $(this).attr("offsetLeft");
Change History (3)
comment:1 Changed 15 years ago by
comment:2 Changed 15 years ago by
Summary: | a bug on jQuery 1.2.3 → attr() can return undefined instead of 0 |
---|
comment:3 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
This should fix that.