Skip to content

Commit 0270fb9

Browse files
run a full resolveAll eagerly now that it's optimized
1 parent 69cced8 commit 0270fb9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/root.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Root.fromJSON = function fromJSON(json, root) {
5151
root = new Root();
5252
if (json.options)
5353
root.setOptions(json.options);
54-
return root.addJSON(json.nested)._resolveFeaturesRecursive();
54+
return root.addJSON(json.nested).resolveAll();
5555
};
5656

5757
/**
@@ -100,7 +100,7 @@ Root.prototype.load = function load(filename, options, callback) {
100100
// Finishes loading by calling the callback (exactly once)
101101
function finish(err, root) {
102102
if (root) {
103-
root._resolveFeaturesRecursive();
103+
root.resolveAll();
104104
}
105105
/* istanbul ignore if */
106106
if (!callback) {
@@ -219,7 +219,7 @@ Root.prototype.load = function load(filename, options, callback) {
219219
if (resolved = self.resolvePath("", filename[i]))
220220
fetch(resolved);
221221
if (sync) {
222-
self._resolveFeaturesRecursive();
222+
self.resolveAll();
223223
return self;
224224
}
225225
if (!queued) {

0 commit comments

Comments
 (0)