docs/js/plugins.js
function createElement(name, props) {
		var c = document,
			d = c.createElement(name);
		if (props && "[object Object]" === Object.prototype.toString.call(props)) {
			var e;
			for (e in props)
				if ("html" === e) d.innerHTML = props[e];
				else if ("text" === e) {
				var f = c.createTextNode(props[e]);
				d.appendChild(f);
			} else d.setAttribute(e, props[e]);
		}
		return d;
	}
function createElement(name, props) {
		var c = document,
			d = c.createElement(name);
		if (props && "[object Object]" === Object.prototype.toString.call(props)) {
			var e;
			for (e in props)
				if ("html" === e) d.innerHTML = props[e];
				else if ("text" === e) {
				var f = c.createTextNode(props[e]);
				d.appendChild(f);
			} else d.setAttribute(e, props[e]);
		}
		return d;
	}
function createElement ( name , props ) { var c = document , d = c . createElement ( name ) ; if ( props && "[object Object]" === Object . prototype . toString . call ( props ) ) { var e ; for ( e in props ) if ( "html" === e ) d . innerHTML = props [ e ] ; else if ( "text" === e ) { var f = c . createTextNode ( props [ e ] ) ; d . appendChild ( f ) ; } else d . setAttribute ( e , props [ e ] ) ; } return d ; }
Create new element and apply propertiess and attributes
@param  {String} name   The new element's nodeName
@param  {Object} prop CSS properties and values
@return {Object} The newly create HTMLElement
Create new element and apply propertiess and attributes