src/js/libs/spiritual-gui.js
function(connect) {
		var obs = this._observer;
		if (obs) {
			if (connect) {
				obs.observe(document, {
					childList: true,
					subtree: true
				});
			} else {
				obs.disconnect();
			}
		}
	}
function(connect) {
		var obs = this._observer;
		if (obs) {
			if (connect) {
				obs.observe(document, {
					childList: true,
					subtree: true
				});
			} else {
				obs.disconnect();
			}
		}
	}
function ( connect ) { var obs = this . _observer ; if ( obs ) { if ( connect ) { obs . observe ( document , { childList : true , subtree : true } ) ; } else { obs . disconnect ( ) ; } } }
Connect and disconnect observer.
@param {boolean} connect
Connect and disconnect observer .