Side navigation
#12521 closed bug (fixed)
Opened September 12, 2012 10:09AM UTC
Closed September 13, 2012 01:44PM UTC
Deferred.promise( target) only works fine when typeof( target)=='object'
Reported by: | lars.gersmann@gmail.com | Owned by: | jaubourg |
---|---|---|---|
Priority: | blocker | Milestone: | 1.8.2 |
Component: | deferred | Version: | 1.8.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Deferred.promise( target) should work fine for any type of target except null and undefined.
Before version 1.8.0 (i used version 1.7.2) you could do
var tracker = $.Deferred();
var foo = function() {
};
foo = tracker.promise( foo);
foo();
Since version 1.8.0 the same code returns just the promise instead of the extend function.
Should be easy to fix.
Attachments (0)
Change History (2)
Changed September 13, 2012 11:24AM UTC by comment:1
component: | unfiled → deferred |
---|---|
milestone: | None → 1.8.2 |
owner: | → jaubourg |
priority: | undecided → blocker |
status: | new → assigned |
Silly, silly regression. Thanks for catching this one.