Permalink
Browse files

Fixed: Retain options argument in Root#load when used with promises, …

…see #684
  • Loading branch information...
dcodeIO committed Mar 8, 2017
1 parent 364e7d4 commit 3e930b907a834a7da759478b8d3f52fef1da22d8
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/root.js
@@ -78,7 +78,7 @@ Root.prototype.load = function load(filename, options, callback) {
}
var self = this;
if (!callback)
return util.asPromise(load, self, filename);
return util.asPromise(load, self, filename, options);
var sync = callback === SYNC; // undocumented

0 comments on commit 3e930b9

Please sign in to comment.