MCPcopy Index your code
hub / github.com/angular/angular / patchOnProperties

Function patchOnProperties

packages/zone.js/lib/common/utils.ts:302–318  ·  view source on GitHub ↗
(obj: any, properties: string[] | null, prototype?: any)

Source from the content-addressed store, hash-verified

300}
301
302export 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
320const originalInstanceKey = zoneSymbol('originalInstance');
321

Callers 1

patchFilteredPropertiesFunction · 0.90

Calls 2

patchPropertyFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…