(e)
| 945 | }), i.promise(o), t && t.call(o, o), o |
| 946 | }, when: function (e) { |
| 947 | var t = arguments.length, n = t, r = Array(n), i = o.call(arguments), a = w.Deferred(), s = function (e) { |
| 948 | return function (n) { |
| 949 | r[e] = this, i[e] = arguments.length > 1 ? o.call(arguments) : n, --t || a.resolveWith(r, i) |
| 950 | } |
| 951 | }; |
| 952 | if (t <= 1 && ($(e, a.done(s(n)).resolve, a.reject, !t), "pending" === a.state() || g(i[n] && i[n].then))) return a.then(); |
| 953 | while (n--) $(i[n], s(n), a.reject); |
| 954 | return a.promise() |
no outgoing calls
no test coverage detected