lib/dhtmlxVault/codebase/vault.js
// assumes if styles exist both are objects or both are strings
assumes if styles exist both are objects or both are strings
assumes if styles exist both are objects or both are strings
function patchStyle(n, o) {
	var ns =     (n.attrs || emptyObj).style;
	var os = o ? (o.attrs || emptyObj).style : null;
	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); }
		}
		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 ; 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 ) ; } } 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
// replace or remove in full // clean old