dist/pico/domvm.pico.es.js
function patchStyle(n, o) {
	var ns =     (n.attrs || emptyObj).style;
	var os = o ? (o.attrs || emptyObj).style : null;

	// replace or remove in full
	if (ns == null || isVal(ns))
		{ n.el.style.cssText = ns; }
	else {
		for (var nn in ns) {
			var nv = ns[nn];

			if (os == null || nv != null && nv !== os[nn])
				{ n.el.style[nn] = autoPx(nn, nv); }
		}

		// clean old
		if (os) {
			for (var on in os) {
				if (ns[on] == null)
					{ n.el.style[on] = ""; }
			}
		}
	}
}
function patchStyle(n, o) {
	var ns =     (n.attrs || emptyObj).style;
	var os = o ? (o.attrs || emptyObj).style : null;

	// replace or remove in full
	if (ns == null || isVal(ns))
		{ n.el.style.cssText = ns; }
	else {
		for (var nn in ns) {
			var nv = ns[nn];

			if (os == null || nv != null && nv !== os[nn])
				{ n.el.style[nn] = autoPx(nn, nv); }
		}

		// clean old
		if (os) {
			for (var on in os) {
				if (ns[on] == null)
					{ n.el.style[on] = ""; }
			}
		}
	}
}
function patchStyle ( n , o ) { var ns = ( n . attrs || emptyObj ) . style ; var os = o ? ( o . attrs || emptyObj ) . style : null ; // replace or remove in full if ( ns == null || isVal ( ns ) ) { n . el . style . cssText = ns ; } else { for ( var nn in ns ) { var nv = ns [ nn ] ; if ( os == null || nv != null && nv !== os [ nn ] ) { n . el . style [ nn ] = autoPx ( nn , nv ) ; } } // clean old if ( os ) { for ( var on in os ) { if ( ns [ on ] == null ) { n . el . style [ on ] = "" ; } } } } }
assumes if styles exist both are objects or both are strings
assumes if styles exist both are objects or both are strings