Skip to content

Commit

Permalink
Now passing extra-data via "file.extra".
Browse files Browse the repository at this point in the history
  • Loading branch information
muaz-khan committed Feb 9, 2017
1 parent 04b674f commit e147daa
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
8 changes: 7 additions & 1 deletion FileBufferReader.js
@@ -1,4 +1,4 @@
// Last time updated: 2017-01-18 10:28:28 AM UTC
// Last time updated: 2017-02-06 5:26:18 PM UTC

// ________________
// FileBufferReader
Expand Down Expand Up @@ -34,6 +34,12 @@
}
};

if (file.extra && Object.keys(file.extra).length) {
Object.keys(file.extra).forEach(function(key) {
options.extra[key] = file.extra[key];
});
}

fbrHelper.readAsArrayBuffer(fbr, options);
};

Expand Down

0 comments on commit e147daa

Please sign in to comment.