(changes: {[key: string]: any}, viewModel: any)
| 369 | } |
| 370 | |
| 371 | export function isPropertyUpdated(changes: {[key: string]: any}, viewModel: any): boolean { |
| 372 | if (!changes.hasOwnProperty('model')) return false; |
| 373 | const change = changes['model']; |
| 374 | |
| 375 | if (change.isFirstChange()) return true; |
| 376 | return !Object.is(viewModel, change.currentValue); |
| 377 | } |
| 378 | |
| 379 | export function isBuiltInAccessor(valueAccessor: ControlValueAccessor): boolean { |
| 380 | // Check if a given value accessor is an instance of a class that directly extends |
no test coverage detected
searching dependent graphs…