src/js/libs/spiritual-gui.js
function(constructing) {
		if (gui.debug) {
			var val, elm = this.element;
			var fix = gui.attributes[0]; // by default using `gui`
			if (constructing) {
				if (gui.attributes.every(function(f) {
					return !elm.hasAttribute(f);
				})) {
					val = "[" + this.constructor.$classname + "]";
					elm.setAttribute(fix, val);
				}
			} else {
				val = elm.getAttribute(fix);
				if (val && val.startsWith("[")) {
					elm.removeAttribute(fix);
				}
			}
		}
	}
function(constructing) {
		if (gui.debug) {
			var val, elm = this.element;
			var fix = gui.attributes[0]; // by default using `gui`
			if (constructing) {
				if (gui.attributes.every(function(f) {
					return !elm.hasAttribute(f);
				})) {
					val = "[" + this.constructor.$classname + "]";
					elm.setAttribute(fix, val);
				}
			} else {
				val = elm.getAttribute(fix);
				if (val && val.startsWith("[")) {
					elm.removeAttribute(fix);
				}
			}
		}
	}
function ( constructing ) { if ( gui . debug ) { var val , elm = this . element ; var fix = gui . attributes [ 0 ] ; // by default using `gui` if ( constructing ) { if ( gui . attributes . every ( function ( f ) { return ! elm . hasAttribute ( f ) ; } ) ) { val = "[" + this . constructor . $classname + "]" ; elm . setAttribute ( fix , val ) ; } } else { val = elm . getAttribute ( fix ) ; if ( val && val . startsWith ( "[" ) ) { elm . removeAttribute ( fix ) ; } } } }
In debug mode, stamp the spirit constructor name onto the spirit element.
Square brackets indicate that the `gui` attribute was added by this method.
@param {boolean} constructing
In debug mode stamp the spirit constructor name onto the spirit element . Square brackets indicate that the gui attribute was added by this method .