(obj: any, properties: string[] | null, prototype?: any)
| 300 | } |
| 301 | |
| 302 | export function patchOnProperties(obj: any, properties: string[] | null, prototype?: any) { |
| 303 | if (properties) { |
| 304 | for (let i = 0; i < properties.length; i++) { |
| 305 | patchProperty(obj, 'on' + properties[i], prototype); |
| 306 | } |
| 307 | } else { |
| 308 | const onProperties = []; |
| 309 | for (const prop in obj) { |
| 310 | if (prop.slice(0, 2) == 'on') { |
| 311 | onProperties.push(prop); |
| 312 | } |
| 313 | } |
| 314 | for (let j = 0; j < onProperties.length; j++) { |
| 315 | patchProperty(obj, onProperties[j], prototype); |
| 316 | } |
| 317 | } |
| 318 | } |
| 319 | |
| 320 | const originalInstanceKey = zoneSymbol('originalInstance'); |
| 321 |
no test coverage detected
searching dependent graphs…