* Check if a method call is known to mutate its receiver, and notify if so. * @param {Object} target - The object the method was called on * @param {string} methodName - The method name
(target, methodName)
| 487 | * @param {string} methodName - The method name |
| 488 | */ |
| 489 | maybeNotify(target, methodName) { |
| 490 | if (target == null || typeof target !== "object") return; |
| 491 | var typeName = target.constructor && target.constructor.name; |
| 492 | var methods = typeName && config.mutatingMethods[typeName]; |
| 493 | if (methods && methods.includes(methodName)) { |
| 494 | this.notifyMutation(target); |
| 495 | } |
| 496 | } |
| 497 | |
| 498 | #trackMutation(val) { |
| 499 | if (this.reactivity.isTracking && val != null && typeof val === "object") { |
no test coverage detected