MCPcopy
hub / github.com/julianshapiro/velocity / getNormalization

Function getNormalization

velocity.js:1429–1439  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

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

Callers 4

setPropertyValueFunction · 0.70
getPropertyValueFunction · 0.70
expandPropertiesFunction · 0.70
expandSequenceFunction · 0.70

Calls 1

DataFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…