lib/abaaso.js
function ( obj ) {
		var l = abaaso.loading;

		if ( l.url === null || obj === undefined ) {
			throw new Error( label.error.invalidArguments );
		}

		// Setting loading image
		if ( l.image === undefined ) {
			l.image     = new Image();
			l.image.src = l.url;
		}

		// Clearing target element
		element.clear( obj );

		// Creating loading image in target element
		element.create( "img", {alt: label.common.loading, src: l.image.src}, element.create( "div", {"class": "loading"}, obj ) );

		return obj;
	}
function ( obj ) {
		var l = abaaso.loading;

		if ( l.url === null || obj === undefined ) {
			throw new Error( label.error.invalidArguments );
		}

		// Setting loading image
		if ( l.image === undefined ) {
			l.image     = new Image();
			l.image.src = l.url;
		}

		// Clearing target element
		element.clear( obj );

		// Creating loading image in target element
		element.create( "img", {alt: label.common.loading, src: l.image.src}, element.create( "div", {"class": "loading"}, obj ) );

		return obj;
	}
function ( obj ) { var l = abaaso . loading ; if ( l . url === null || obj === undefined ) { throw new Error ( label . error . invalidArguments ) ; } // Setting loading image if ( l . image === undefined ) { l . image = new Image ( ) ; l . image . src = l . url ; } // Clearing target element element . clear ( obj ) ; // Creating loading image in target element element . create ( "img" , { alt : label . common . loading , src : l . image . src } , element . create ( "div" , { "class" : "loading" } , obj ) ) ; return obj ; }
Renders a loading icon in a target element,
with a class of "loading"

@method loading
@param  {Mixed} obj Element
@return {Mixed}     Element
Renders a loading icon in a target element with a class of loading