mirror of https://github.com/vuejs/core.git
refactor(reactivity): avoid setting up debug flags on falsy onTrigger value
This commit is contained in:
parent
674151c9b9
commit
1e9062c075
|
@ -55,7 +55,7 @@ export function setupOnTrigger(target: { new (...args: any[]): any }): void {
|
|||
return this._onTrigger
|
||||
},
|
||||
set(val) {
|
||||
if (!this._onTrigger) setupFlagsHandler(this)
|
||||
if (val && !this._onTrigger) setupFlagsHandler(this)
|
||||
this._onTrigger = val
|
||||
},
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue