]> khamidou — GitHub mirrors - electron.git/commit
Refractor in `completed` event in DownloadItem.
authorHaojian Wu <hokein.wu@gmail.com>
Mon, 21 Sep 2015 05:45:42 +0000 (13:45 +0800)
committerHaojian Wu <hokein.wu@gmail.com>
Mon, 21 Sep 2015 06:00:38 +0000 (14:00 +0800)
commit57bf0cb615ec27482154e9742cf6284d27c9262a
treeca39f7398d83ef97e04e959c12b84c7019c69b32
parent997ac91fe03b3ed2a3bd133bb27e6ce8151b4498
Refractor in `completed` event in DownloadItem.

* Rename `completed` to `done`, making it align with Chromium's style.
* Add 'state' in `done` event's result. It can check the download item final
status: cancelled, completed, interrupted.
atom/browser/api/atom_api_download_item.cc
docs/api/download-item.md