Add comments for finding registry hook calls (#8734)

This commit is contained in:
Jukka Kurkela 2021-03-27 00:10:41 +02:00 committed by GitHub
parent 671d6e0560
commit 37080c9a8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -151,9 +151,9 @@ export class Registry {
*/
_exec(method, registry, component) {
const camelMethod = _capitalize(method);
call(component['before' + camelMethod], [], component);
call(component['before' + camelMethod], [], component); // beforeRegister / beforeUnregister
registry[method](component);
call(component['after' + camelMethod], [], component);
call(component['after' + camelMethod], [], component); // afterRegister / afterUnregister
}
/**