We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jQuery.1.8以降(thenがpipe同様の挙動をする場合)について、then()をfailハンドラ(第2引数)の指定無しで呼んだ場合、then()の戻り値のプロミスから登録したfailハンドラが動作しない。
d = h5.async.deferred(); p = d.then(function() {}); // failハンドラを渡さない p.fail(function() { // d.reject()でここが呼ばれるはずなのに、呼ばれない。 }); d.reject();
then()をdoneハンドラを指定せずに呼んだ場合も、d.resolve()した時にp.done()に渡したハンドラが呼ばれない。
上記のソースコード例で、h5.async.deferred()ではなく、$.Deffered()を用いた場合は、ハンドラは正しく呼ばれる。
The text was updated successfully, but these errors were encountered:
hifive#321 pipeの実装を修正して、引数なし(引数が非関数)の場合にプロミスの連鎖が続くように修正しました。
6139f3d
テストケースを追加しました。
hifive#321 isFunc変数はfnが関数ならtrue、そうでないならfalseになるようにしました。
f4d8197
fukudayasuo
No branches or pull requests
jQuery.1.8以降(thenがpipe同様の挙動をする場合)について、then()をfailハンドラ(第2引数)の指定無しで呼んだ場合、then()の戻り値のプロミスから登録したfailハンドラが動作しない。
then()をdoneハンドラを指定せずに呼んだ場合も、d.resolve()した時にp.done()に渡したハンドラが呼ばれない。
上記のソースコード例で、h5.async.deferred()ではなく、$.Deffered()を用いた場合は、ハンドラは正しく呼ばれる。
The text was updated successfully, but these errors were encountered: