Bug Tracker

Opened 11 years ago

Closed 11 years ago

#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:
Blocked by: Blocking:


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() { 

Expected it to log the jquery object. Instead it logs undefined.

Change History (2)

comment:1 Changed 11 years ago by anonymous

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

comment:2 Changed 11 years ago by sindresorhus

Component: unfileddeferred
Priority: undecidedlow
Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.