Side navigation
#11895 closed bug (invalid)
Opened June 12, 2012 04:22AM UTC
Closed June 12, 2012 11:02AM UTC
$.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: | ||
Blocked by: | Blocking: |
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.
Cancel this ticket. Looks like a different 3rd party library that is running is breaking jQuery in this case.