Skip to content

Commit

Permalink
Replace async with foco.
Browse files Browse the repository at this point in the history
  • Loading branch information
weilonge committed Jun 5, 2015
1 parent 8e05abe commit 44b8ce1
Show file tree
Hide file tree
Showing 6 changed files with 126 additions and 1,146 deletions.
5 changes: 4 additions & 1 deletion dom/system/gonk/cloudstorage/Sample.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,10 @@ Sample.getFileDownload = function (path, offset, size, cb){
var meta = this._findMeta(path);
if (meta && typeof meta === 'string') {
var result = meta.substr(offset, size);
cb(null, {data: result});
cb(null, {
data: result,
length: result.length
});
} else {
cb(null, null);
}
Expand Down
Loading

0 comments on commit 44b8ce1

Please sign in to comment.