<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">define(function() {
	/**
	 * Loader
	 * @type object
	 */
	var Loader = {
		active: 0
	};

	/**
	 * Start load indicator
	 */
	Loader.start = function() {
		if (!this.isBusy()) {
			$('body').addClass('loading');
		}
		this.active++;
	};

	/**
	 * Stop load indicator
	 */
	Loader.stop = function() {
		this.active--;
		if (!this.isBusy()) {
			$('body').removeClass('loading');
		}
	};

	/**
	 * Is Busy
	 * @returns {Boolean}
	 */
	Loader.isBusy = function() {
		return this.active &gt; 0;
	};
	
	return Loader;
});</pre></body></html>