We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 260f07e commit d6114a6Copy full SHA for d6114a6
lib/proto.js
@@ -147,8 +147,10 @@ function child (bindings, options) {
147
}
148
149
instance[chindingsSym] = asChindings(instance, bindings)
150
- const childLevel = options.level || this.level
151
- instance[setLevelSym](childLevel)
+ if ((options.level !== undefined && options.level !== this.level) || options.hasOwnProperty('customLevels')) {
+ const childLevel = options.level || this.level
152
+ instance[setLevelSym](childLevel)
153
+ }
154
this.onChild(instance)
155
return instance
156
0 commit comments