You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ryc O'Chet edited this page Feb 1, 2018
·
1 revision
- NOTE: This documentation is for Velocity v2.
Command - RegisterNormalization
Normalizations are registered via the "registerNormalization" command. This takes a property name, and a callback which takes the element and an optional value as arguments. If the value is undefined, then this is a get action, otherwise it is a set action. In addition, if the set action returns a false-ey value then it will automatically set the css style of the same propertyName to the same value (so return true to skip this).