This question is locked. New answers and comments are not allowed.
Hi I struggling to make Icenium's async calls a little more manageable. Ideally I'd like to use something like promises in Jquery but I don't think it supports them. Currently I have
window.requestFileSystem(LocalFileSystem.PERSISTENT, 0,onFSWin , onFSFail);
which calls
function onFSWin(fileSystem) {
fileSystem.root.getDirectory("Icenium Demo", {create: false, exclusive: false}, onGetDirectoryWin, onGetDirectoryFail);
}
As you can imagine 4-5 async calls chained together becomes quite messy. Can anyone recommend a way of dealing with this
window.requestFileSystem(LocalFileSystem.PERSISTENT, 0,onFSWin , onFSFail);
which calls
function onFSWin(fileSystem) {
fileSystem.root.getDirectory("Icenium Demo", {create: false, exclusive: false}, onGetDirectoryWin, onGetDirectoryFail);
}
As you can imagine 4-5 async calls chained together becomes quite messy. Can anyone recommend a way of dealing with this