remove sync-busy and sync-done event emissions from sync component
authorMichiel de Jong <michiel@unhosted.org>
Sun, 15 Dec 2013 00:34:04 +0000 (00:34 +0000)
committerMichiel de Jong <michiel@unhosted.org>
Mon, 6 Jan 2014 06:25:24 +0000 (06:25 +0000)
commita7b1e629e436338c60b91c3cceb82a4b5155334f
tree6e0a465db397d92ca574b62aa13a2b1496b21069
parent77c604cc35177583c1201502eb65148a8ff301c1
remove sync-busy and sync-done event emissions from sync component

add sync-busy and sync-done to wireclient.put

add test for sync-done on put failure

also emit sync-busy and sync-done for GETting documents (not folders) and DELETE

rename var that -> self

rebase

rebase test

renams sync-busy -> wire-busy, sync-done -> wire-done & re-enable for get-folder

thanks @galfert for the correction!

emit wire-busy/wire-done from request method as suggested by @skddc

whitespace and style

nicer event args

move _request on to the prototype so that it an emit events

rename event args

tabs to spaces

back to simpler way to return promise

back to simpler way to return promise

remove unused self var
src/remotestorage.js
src/sync.js
src/widget.js
src/wireclient.js
test/unit/sync-suite.js
test/unit/wireclient-suite.js