Modify ↓
Ticket #8401 (closed enhancement: fixed)
minor enhancement to opacity cssHooks
| Reported by: | lrbabe | Owned by: | jitter |
|---|---|---|---|
| Priority: | low | Milestone: | 1.6 |
| Component: | css | Version: | 1.5.1 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
Why are we doing
var filter = style.filter || ""; style.filter = style.filter + ' ' + opacity;
When we could do
var filter = style.filter || ""; // reuse the 'filter' var style.filter = filter + ' ' + opacity;
Improve jQuery, one DOM access at a time.
The actual code is slightly longer, but the modification is equally tiny, see following push request.
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

Here is the pull request: https://github.com/jquery/jquery/pull/254/files