code: function(el,domAttributes,styleAttributes){
        if(!el) { return; }
  		var i;
        if(domAttributes){
           for(i in domAttributes){
  				if(domAttributes.hasOwnProperty(i)) {
  					var domAttribute = domAttributes[i];
  	            if(typeof (domAttribute)=="function"){continue;}
  	            if(i=="className"){
  	               i="class";
  	               el.className=domAttribute;
  	            }
  	            if(domAttribute!==el.getAttribute(i)){
  	               if(domAttribute===false){
  	                  el.removeAttribute(i);
  	               }else{
  	                  el.setAttribute(i,domAttribute);
  	               }
  	            }
  				}
           }
        }
        if(styleAttributes){
           for(i in styleAttributes){
  				if(styleAttributes.hasOwnProperty(i)) {
  					if(typeof (styleAttributes[i])=="function"){ continue; }
  					if(el.style[i]!=styleAttributes[i]){
  						el.style[i]=styleAttributes[i];
  					}
  				}
           }
        }
     
     }
docs: Helper function to set DOM node attributes and style attributes.
  @method sn
  @static
  @param {HTMLElement} el The element to set attributes to
  @param {Object} domAttributes An object containing key/value pairs to set as node attributes (ex: {id: 'myElement', className: 'myCssClass', ...})
  @param {Object} styleAttributes Same thing for style attributes. Please use camelCase for style attributes (ex: backgroundColor for 'background-color')