jquery ajax のカスタム ラッパー関数があります。
custom.get = function (path, callback) {
// do other things
$.get(path, function () {
callback()
})
}
やっている
$.when(custom.get(path), custom.get(path)).done(function (result1, result2) { callback})
動作しないようです。それはうまくいくはずですか?遅延を行うための代替手段はありますか?