* Get the normalization for an element and propertyName combination. This * value should be cached at asking time, as it may change if the user adds * more normalizations.
(element, propertyName)
| 1427 | * more normalizations. |
| 1428 | */ |
| 1429 | function getNormalization(element, propertyName) { |
| 1430 | var data = Data(element); |
| 1431 | var fn = void 0; |
| 1432 | for (var index = constructors.length - 1, types = data.types; !fn && index >= 0; index--) { |
| 1433 | if (types & 1 << index) { |
| 1434 | // tslint:disable-line:no-bitwise |
| 1435 | fn = Normalizations[index][propertyName]; |
| 1436 | } |
| 1437 | } |
| 1438 | return fn; |
| 1439 | } |
| 1440 | registerAction(["registerNormalization", registerNormalization]); |
| 1441 | registerAction(["hasNormalization", hasNormalization]); |
| 1442 |
no test coverage detected
searching dependent graphs…