Modify ↓
Ticket #11895 (closed bug: invalid)
$.when causes $ to be undefined inside of callbacks
| Reported by: | anonymous | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | None |
| Component: | deferred | Version: | 1.7.2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
In the callbacks put on $.when, $ becomes undefined.
Best demonstrated through example:
var d = new $.Deferred();
setTimeout(function() { d.resolve(); }, 1000);
var w = $.when(d);
w.done(function() {
console.log($);
});
Expected it to log the jquery object. Instead it logs undefined.
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.

Cancel this ticket. Looks like a different 3rd party library that is running is breaking jQuery in this case.