Closed fukudayasuo closed 10 years ago
今の実装だと、hifiveのdeferred.thenはpipeを呼び出す関数になっていて、thenとpipeは===ではない。
jQueryではthen===pipeなので、hifiveでもそのように実装する。なお、この変更でthenやpipeを呼び出した時の挙動は一切変わりません。
then===pipeである実装にすれば、テストケースもそのことを確認すれば全く同じthenとpipeで2重にテストする必要はなくなる。
76a98992919b1b8e9dd7b2a37a9c541e33210cb5 then===pipeを確認するテストケースを追加しました
関連 #322
今の実装だと、hifiveのdeferred.thenはpipeを呼び出す関数になっていて、thenとpipeは===ではない。
jQueryではthen===pipeなので、hifiveでもそのように実装する。なお、この変更でthenやpipeを呼び出した時の挙動は一切変わりません。
then===pipeである実装にすれば、テストケースもそのことを確認すれば全く同じthenとpipeで2重にテストする必要はなくなる。