docs/vendor.js
function elementStyleProp(index, styleIndex, value, suffix) {
    var valueToAdd = null;
    if (value) {
        if (suffix) {
            // when a suffix is applied then it will bypass
            // sanitization entirely (b/c a new string is created)
            valueToAdd = stringify$1(value) + suffix;
        }
        else {
            // sanitization happens by dealing with a String value
            // this means that the string value will be passed through
            // into the style rendering later (which is where the value
            // will be sanitized before it is applied)
            valueToAdd = value;
        }
    }
    updateStyleProp(getStylingContext(index), styleIndex, valueToAdd);
}
function elementStyleProp(index, styleIndex, value, suffix) {
    var valueToAdd = null;
    if (value) {
        if (suffix) {
            // when a suffix is applied then it will bypass
            // sanitization entirely (b/c a new string is created)
            valueToAdd = stringify$1(value) + suffix;
        }
        else {
            // sanitization happens by dealing with a String value
            // this means that the string value will be passed through
            // into the style rendering later (which is where the value
            // will be sanitized before it is applied)
            valueToAdd = value;
        }
    }
    updateStyleProp(getStylingContext(index), styleIndex, valueToAdd);
}
function elementStyleProp ( index , styleIndex , value , suffix ) { var valueToAdd = null ; if ( value ) { if ( suffix ) { // when a suffix is applied then it will bypass // sanitization entirely (b/c a new string is created) valueToAdd = stringify$1 ( value ) + suffix ; } else { // sanitization happens by dealing with a String value // this means that the string value will be passed through // into the style rendering later (which is where the value // will be sanitized before it is applied) valueToAdd = value ; } } updateStyleProp ( getStylingContext ( index ) , styleIndex , valueToAdd ) ; }
Queue a given style to be rendered on an Element.

If the style value is `null` then it will be removed from the element
(or assigned a different value depending if there are any styles placed
on the element with `elementStyle` or any styles that are present
from when the element was created (with `elementStyling`).

(Note that the styling instruction will not be applied until `elementStylingApply` is called.)

@param index Index of the element's styling storage to change in the data array.
(Note that this is not the element index, but rather an index value allocated
specifically for element styling--the index must be the next index after the element
index.)
@param styleIndex Index of the style property on this element. (Monotonically increasing.)
@param styleName Name of property. Because it is going to DOM this is not subject to
renaming as part of minification.
@param value New value to write (null to remove).
@param suffix Optional suffix. Used with scalar values to add unit such as `px`.
Note that when a suffix is provided then the underlying sanitizer will
be ignored.
Queue a given style to be rendered on an Element .