jQuery Deferred's, $.when() and the fail() callback arguments

后端 未结 4 529
灰色年华
灰色年华 2020-12-01 16:08

I\'m getting an unexpected result when using $.when() when one of the deferred operations does not succeed.

Take this JavaScript, which created 2 deferr

4条回答
  •  生来不讨喜
    2020-12-01 16:25

    http://jsfiddle.net/InfinitiesLoop/yQsYK/

    This will always reject if given multiple inputs. rejected = true; should be rejected |= reject;

提交回复
热议问题