hifive / hifivemain

main repository
http://www.htmlhifive.com/
Other
40 stars 10 forks source link

jQueryのthen===pipeであるバージョン(1.8以上)では、hifiveのthen===pipeになるようにする #323

Closed fukudayasuo closed 10 years ago

fukudayasuo commented 10 years ago

今の実装だと、hifiveのdeferred.thenはpipeを呼び出す関数になっていて、thenとpipeは===ではない。

jQueryではthen===pipeなので、hifiveでもそのように実装する。なお、この変更でthenやpipeを呼び出した時の挙動は一切変わりません。

then===pipeである実装にすれば、テストケースもそのことを確認すれば全く同じthenとpipeで2重にテストする必要はなくなる。

fukudayasuo commented 10 years ago

76a98992919b1b8e9dd7b2a37a9c541e33210cb5 then===pipeを確認するテストケースを追加しました

関連 #322