examples/template_stealjs/funcunit/syn/resources/jquery.event.drag.js
function( loc ) {
			// create a ghost by cloning the source element and attach the clone to the dom after the source element
			var ghost = this.movingElement.clone().css('position', 'absolute');
			(loc ? $(loc) : this.movingElement).after(ghost);
			ghost.width(this.movingElement.width()).height(this.movingElement.height());

			// store the original element and make the ghost the dragged element
			this.movingElement = ghost;
			this._removeMovingElement = true;
			return ghost;
		}
function( loc ) {
			// create a ghost by cloning the source element and attach the clone to the dom after the source element
			var ghost = this.movingElement.clone().css('position', 'absolute');
			(loc ? $(loc) : this.movingElement).after(ghost);
			ghost.width(this.movingElement.width()).height(this.movingElement.height());

			// store the original element and make the ghost the dragged element
			this.movingElement = ghost;
			this._removeMovingElement = true;
			return ghost;
		}
function ( loc ) { // create a ghost by cloning the source element and attach the clone to the dom after the source element var ghost = this . movingElement . clone ( ) . css ( 'position' , 'absolute' ) ; ( loc ? $ ( loc ) : this . movingElement ) . after ( ghost ) ; ghost . width ( this . movingElement . width ( ) ) . height ( this . movingElement . height ( ) ) ; // store the original element and make the ghost the dragged element this . movingElement = ghost ; this . _removeMovingElement = true ; return ghost ; }
Clones the element and uses it as the moving element.
@return {jQuery.fn} the ghost
Clones the element and uses it as the moving element .