docs/vendor.js
function renderStyling(context, renderer, styleStore, classStore) {
    if (isContextDirty(context)) {
        var native = context[0 /* ElementPosition */].native;
        var multiStartIndex = getMultiStartIndex(context);
        var styleSanitizer = getStyleSanitizer(context);
        for (var i = 6 /* SingleStylesStartPosition */; i < context.length; i += 3 /* Size */) {
            // there is no point in rendering styles that have not changed on screen
            if (isDirty(context, i)) {
                var prop = getProp(context, i);
                var value = getValue(context, i);
                var flag = getPointers(context, i);
                var isClassBased_6 = flag & 2 /* Class */ ? true : false;
                var isInSingleRegion = i < multiStartIndex;
                var valueToApply = value;
                // VALUE DEFER CASE 1: Use a multi value instead of a null single value
                // this check implies that a single value was removed and we
                // should now defer to a multi value and use that (if set).
                if (isInSingleRegion && !valueExists(valueToApply, isClassBased_6)) {
                    // single values ALWAYS have a reference to a multi index
                    var multiIndex = getMultiOrSingleIndex(flag);
                    valueToApply = getValue(context, multiIndex);
                }
                // VALUE DEFER CASE 2: Use the initial value if all else fails (is falsy)
                // the initial value will always be a string or null,
                // therefore we can safely adopt it incase there's nothing else
                // note that this should always be a falsy check since `false` is used
                // for both class and style comparisons (styles can't be false and false
                // classes are turned off and should therefore defer to their initial values)
                if (!valueExists(valueToApply, isClassBased_6)) {
                    valueToApply = getInitialValue(context, flag);
                }
                if (isClassBased_6) {
                    setClass(native, prop, valueToApply ? true : false, renderer, classStore);
                }
                else {
                    var sanitizer = (flag & 4 /* Sanitize */) ? styleSanitizer : null;
                    setStyle(native, prop, valueToApply, renderer, sanitizer, styleStore);
                }
                setDirty(context, i, false);
            }
        }
        setContextDirty(context, false);
    }
}
function renderStyling(context, renderer, styleStore, classStore) {
    if (isContextDirty(context)) {
        var native = context[0 /* ElementPosition */].native;
        var multiStartIndex = getMultiStartIndex(context);
        var styleSanitizer = getStyleSanitizer(context);
        for (var i = 6 /* SingleStylesStartPosition */; i < context.length; i += 3 /* Size */) {
            // there is no point in rendering styles that have not changed on screen
            if (isDirty(context, i)) {
                var prop = getProp(context, i);
                var value = getValue(context, i);
                var flag = getPointers(context, i);
                var isClassBased_6 = flag & 2 /* Class */ ? true : false;
                var isInSingleRegion = i < multiStartIndex;
                var valueToApply = value;
                // VALUE DEFER CASE 1: Use a multi value instead of a null single value
                // this check implies that a single value was removed and we
                // should now defer to a multi value and use that (if set).
                if (isInSingleRegion && !valueExists(valueToApply, isClassBased_6)) {
                    // single values ALWAYS have a reference to a multi index
                    var multiIndex = getMultiOrSingleIndex(flag);
                    valueToApply = getValue(context, multiIndex);
                }
                // VALUE DEFER CASE 2: Use the initial value if all else fails (is falsy)
                // the initial value will always be a string or null,
                // therefore we can safely adopt it incase there's nothing else
                // note that this should always be a falsy check since `false` is used
                // for both class and style comparisons (styles can't be false and false
                // classes are turned off and should therefore defer to their initial values)
                if (!valueExists(valueToApply, isClassBased_6)) {
                    valueToApply = getInitialValue(context, flag);
                }
                if (isClassBased_6) {
                    setClass(native, prop, valueToApply ? true : false, renderer, classStore);
                }
                else {
                    var sanitizer = (flag & 4 /* Sanitize */) ? styleSanitizer : null;
                    setStyle(native, prop, valueToApply, renderer, sanitizer, styleStore);
                }
                setDirty(context, i, false);
            }
        }
        setContextDirty(context, false);
    }
}
function renderStyling ( context , renderer , styleStore , classStore ) { if ( isContextDirty ( context ) ) { var native = context [ 0 /* ElementPosition */ ] . native ; var multiStartIndex = getMultiStartIndex ( context ) ; var styleSanitizer = getStyleSanitizer ( context ) ; for ( var i = 6 /* SingleStylesStartPosition */ ; i < context . length ; i += 3 /* Size */ ) { // there is no point in rendering styles that have not changed on screen if ( isDirty ( context , i ) ) { var prop = getProp ( context , i ) ; var value = getValue ( context , i ) ; var flag = getPointers ( context , i ) ; var isClassBased_6 = flag & 2 /* Class */ ? true : false ; var isInSingleRegion = i < multiStartIndex ; var valueToApply = value ; // VALUE DEFER CASE 1: Use a multi value instead of a null single value // this check implies that a single value was removed and we // should now defer to a multi value and use that (if set). if ( isInSingleRegion && ! valueExists ( valueToApply , isClassBased_6 ) ) { // single values ALWAYS have a reference to a multi index var multiIndex = getMultiOrSingleIndex ( flag ) ; valueToApply = getValue ( context , multiIndex ) ; } // VALUE DEFER CASE 2: Use the initial value if all else fails (is falsy) // the initial value will always be a string or null, // therefore we can safely adopt it incase there's nothing else // note that this should always be a falsy check since `false` is used // for both class and style comparisons (styles can't be false and false // classes are turned off and should therefore defer to their initial values) if ( ! valueExists ( valueToApply , isClassBased_6 ) ) { valueToApply = getInitialValue ( context , flag ) ; } if ( isClassBased_6 ) { setClass ( native , prop , valueToApply ? true : false , renderer , classStore ) ; } else { var sanitizer = ( flag & 4 /* Sanitize */ ) ? styleSanitizer : null ; setStyle ( native , prop , valueToApply , renderer , sanitizer , styleStore ) ; } setDirty ( context , i , false ) ; } } setContextDirty ( context , false ) ; } }
Renders all queued styling using a renderer onto the given element.

This function works by rendering any styles (that have been applied
using `updateStylingMap`) and any classes (that have been applied using
`updateStyleProp`) onto the provided element using the provided renderer.
Just before the styles/classes are rendered a final key/value style map
will be assembled (if `styleStore` or `classStore` are provided).

@param lElement the element that the styles will be rendered on
@param context The styling context that will be used to determine
what styles will be rendered
@param renderer the renderer that will be used to apply the styling
@param styleStore if provided, the updated style values will be applied
to this key/value map instead of being renderered via the renderer.
@param classStore if provided, the updated class values will be applied
to this key/value map instead of being renderered via the renderer.
Renders all queued styling using a renderer onto the given element .