/
githubmirror
/
angular
Обзор
Документация
Войти
/
githubmirror
/
angular
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/core/primitives/event-dispatch/src/property.ts
34 строки
1 KB
Joey Perrott
refactor: update license text to point to angular.dev (#57901)
24 сен 2024, 16:33
24 сен 2024, 16:33
9dbe6fc
Код
Авторство
О чём код?
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ /** All properties that are used by jsaction. */ export const Property = { /** * The parsed value of the jsaction attribute is stored in this * property on the DOM node. The parsed value is an Object. The * property names of the object are the events; the values are the * names of the actions. This property is attached even on nodes * that don't have a jsaction attribute as an optimization, because * property lookup is faster than attribute access. */ JSACTION: '__jsaction' as const, /** * The owner property references an a logical owner for a DOM node. JSAction * will follow this reference instead of parentNode when traversing the DOM * to find jsaction attributes. This allows overlaying a logical structure * over a document where the DOM structure can't reflect that structure. */ OWNER: '__owner' as const, }; declare global { interface Node { [Property.JSACTION]?: {[key: string]: string | undefined}; [Property.OWNER]?: ParentNode; } }