Skip to content

Commit

Permalink
Fixed: Retain options argument in Root#load when used with promises, …
Browse files Browse the repository at this point in the history
…see #684
  • Loading branch information
dcodeIO committed Mar 8, 2017
1 parent 364e7d4 commit 3e930b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/root.js
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 3e930b9

Please sign in to comment.