function patchStyle(lastAttrValue, nextAttrValue, dom) {
        if (isString(nextAttrValue)) {
            dom.style.cssText = nextAttrValue;
            return;
        }
        for (var style in nextAttrValue) {
            // do not add a hasOwnProperty check here, it affects performance
            var value = nextAttrValue[style];
            if (isNumber(value) && !isUnitlessNumber[style]) {
                dom.style[style] = value + 'px';
            }
            else {
                dom.style[style] = value;
            }
        }
        if (!isNullOrUndef(lastAttrValue)) {
            for (var style$1 in lastAttrValue) {
                if (isNullOrUndef(nextAttrValue[style$1])) {
                    dom.style[style$1] = '';
                }
            }
        }
    }
// -nextAttrValue cannot be null or undefined
nextAttrValue cannot be null or undefined
nextAttrValue cannot be null or undefined
function patchStyle(lastAttrValue, nextAttrValue, dom) {
        if (isString(nextAttrValue)) {
            dom.style.cssText = nextAttrValue;
            return;
        }
        for (var style in nextAttrValue) {
            var value = nextAttrValue[style];
            if (isNumber(value) && !isUnitlessNumber[style]) {
                dom.style[style] = value + 'px';
            }
            else {
                dom.style[style] = value;
            }
        }
        if (!isNullOrUndef(lastAttrValue)) {
            for (var style$1 in lastAttrValue) {
                if (isNullOrUndef(nextAttrValue[style$1])) {
                    dom.style[style$1] = '';
                }
            }
        }
    }
function patchStyle ( lastAttrValue , nextAttrValue , dom ) { if ( isString ( nextAttrValue ) ) { dom . style . cssText = nextAttrValue ; return ; } for ( var style in nextAttrValue ) { var value = nextAttrValue [ style ] ; if ( isNumber ( value ) && ! isUnitlessNumber [ style ] ) { dom . style [ style ] = value + 'px' ; } else { dom . style [ style ] = value ; } } if ( ! isNullOrUndef ( lastAttrValue ) ) { for ( var style$1 in lastAttrValue ) { if ( isNullOrUndef ( nextAttrValue [ style$1 ] ) ) { dom . style [ style$1 ] = '' ; } } } }
nextAttrValue cannot be null or undefined
nextAttrValue cannot be null or undefined
// do not add a hasOwnProperty check here, it affects performance