load() callback "this" breaking in 2.2.0 vs 2.1.4 #3035
|
It looks like the callback invocation should be using |
|
@markelog This fix is making it into 1.12.3 & 2.2.3 so the milestone should reflect that. Why did you change that to 3.0.0? |
|
And to 3.0 too, whereas master branch is a primary one. So why did you change the milestone, before clarifying? |
|
Milestones are used to generate changelogs and for end users it doesn't Also, if anyone, I should be the one asking why you changed the milestone Michał Gołębiowski |
|
I think correct course of events is important, this issue looks like that the fix is only needed for 2.2-stable, whereas is it would incorrect to assume that.
That would be an incorrect, offensive commit was done against the 3.0 and ported to 2.x/1.x, This commit should be in both changelogs, milestone, in my opinion should be set on primary branch. |
|
Thanks for the fix and quick release, now our app works again! :) |
Hi,
"this" in the callback to the load() function changed from 2.1.4 to 2.2.0 in a breaking way.
The documentation at http://api.jquery.com/load/ says: ".. this is set to each DOM element in turn.".
In 2.2.0 "this" is instead the jQuery instance, and not the DOM element.
I tracked it down to this commit:
a4715f4
Regards
/Fredrik Blomqvist