Skip to main content

Bug Tracker

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:

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.

Attachments (0)
Change History (2)

Changed June 12, 2012 04:34AM UTC by anonymous comment:1

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

Changed June 12, 2012 11:02AM UTC by sindresorhus comment:2

component: unfileddeferred
priority: undecidedlow
resolution: → invalid
status: newclosed