Just noticed that this should be `new $.Deferred().resolve().promise()` (that was a bug in my original code, not new to this pull request).